openstackclient.compute.v2 package

openstackclient.compute.v2 package

Submodules

openstackclient.compute.v2.agent module

Agent action implementations

class openstackclient.compute.v2.agent.CreateAgent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.agent.CreateAgent (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.agent.DeleteAgent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.agent.DeleteAgent (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.agent.ListAgent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.agent.ListAgent (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.agent.SetAgent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.agent.SetAgent (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.aggregate module

Compute v2 Aggregate action implementations

class openstackclient.compute.v2.aggregate.AddAggregateHost(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.AddAggregateHost (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.aggregate.CreateAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.CreateAggregate (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.aggregate.DeleteAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.DeleteAggregate (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.aggregate.ListAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.ListAggregate (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.aggregate.RemoveAggregateHost(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.RemoveAggregateHost (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.aggregate.SetAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.SetAggregate (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.aggregate.ShowAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.ShowAggregate (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.aggregate.UnsetAggregate(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.aggregate.UnsetAggregate (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.console module

Compute v2 Console action implementations

class openstackclient.compute.v2.console.ShowConsoleLog(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.console.ShowConsoleLog (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.console.ShowConsoleURL(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.console.ShowConsoleURL (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.fixedip module

Fixed IP action implementations

class openstackclient.compute.v2.fixedip.AddFixedIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

deprecated = True
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger deprecated (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.fixedip.RemoveFixedIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

deprecated = True
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger deprecated (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.flavor module

Flavor action implementations

class openstackclient.compute.v2.flavor.CreateFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.CreateFlavor (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.flavor.DeleteFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.DeleteFlavor (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.flavor.ListFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.ListFlavor (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.flavor.SetFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.SetFlavor (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.flavor.ShowFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.ShowFlavor (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.flavor.UnsetFlavor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.flavor.UnsetFlavor (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.floatingip module

Floating IP action implementations

class openstackclient.compute.v2.floatingip.AddFloatingIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

deprecated = True
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger deprecated (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.floatingip.RemoveFloatingIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

deprecated = True
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger deprecated (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.host module

Host action implementations

class openstackclient.compute.v2.host.ListHost(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.host.ListHost (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.host.SetHost(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.host.SetHost (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.host.ShowHost(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.host.ShowHost (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

openstackclient.compute.v2.hypervisor module

Hypervisor action implementations

class openstackclient.compute.v2.hypervisor.ListHypervisor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.hypervisor.ListHypervisor (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.hypervisor.ShowHypervisor(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.hypervisor.ShowHypervisor (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.hypervisor_stats module

Hypervisor Stats action implementations

class openstackclient.compute.v2.hypervisor_stats.ShowHypervisorStats(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

log = <Logger openstackclient.compute.v2.hypervisor_stats.ShowHypervisorStats (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.keypair module

Keypair action implementations

class openstackclient.compute.v2.keypair.CreateKeypair(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.keypair.CreateKeypair (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.keypair.DeleteKeypair(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.keypair.DeleteKeypair (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.keypair.ListKeypair(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

log = <Logger openstackclient.compute.v2.keypair.ListKeypair (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.keypair.ShowKeypair(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.keypair.ShowKeypair (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.server module

Compute v2 Server action implementations

class openstackclient.compute.v2.server.AddFixedIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.AddFixedIP (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.AddFloatingIP(app, app_args, cmd_name=None)

Bases: openstackclient.network.common.NetworkAndComputeCommand

log = <Logger openstackclient.compute.v2.server.AddFloatingIP (WARNING)>
take_action_compute(client, parsed_args)

Override to do something useful.

take_action_network(client, parsed_args)

Override to do something useful.

update_parser_common(parser)

Default is no updates to parser.

class openstackclient.compute.v2.server.AddNetwork(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.AddNetwork (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.AddPort(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.AddPort (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.AddServerSecurityGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.AddServerSecurityGroup (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.AddServerVolume(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.AddServerVolume (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.CreateServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.CreateServer (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.server.CreateServerDump(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

Create a dump file in server(s)

Trigger crash dump in server(s) with features like kdump in Linux. It will create a dump file in the server(s) dumping the server(s)’ memory, and also crash the server(s). OSC sees the dump file (server dump) as a kind of resource.

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.CreateServerDump (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.DeleteServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.DeleteServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.KeyValueAppendAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)

Bases: argparse.Action

A custom action to parse arguments as key=value pairs

Ensures that dest is a dict and values are lists of strings.

class openstackclient.compute.v2.server.ListServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.ListServer (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.server.LockServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.LockServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.MigrateServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.MigrateServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.PauseServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.PauseServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RebootServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RebootServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RebuildServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RebuildServer (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.server.RemoveFixedIP(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RemoveFixedIP (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RemoveFloatingIP(app, app_args, cmd_name=None)

Bases: openstackclient.network.common.NetworkAndComputeCommand

log = <Logger openstackclient.compute.v2.server.RemoveFloatingIP (WARNING)>
take_action_compute(client, parsed_args)

Override to do something useful.

take_action_network(client, parsed_args)

Override to do something useful.

update_parser_common(parser)

Default is no updates to parser.

class openstackclient.compute.v2.server.RemoveNetwork(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RemoveNetwork (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RemovePort(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RemovePort (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RemoveServerSecurityGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RemoveServerSecurityGroup (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RemoveServerVolume(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RemoveServerVolume (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RescueServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RescueServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.ResizeServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.ResizeServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.RestoreServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.RestoreServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.ResumeServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.ResumeServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.SetServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.SetServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.ShelveServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.ShelveServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.ShowServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.ShowServer (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.server.SshServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.SshServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.StartServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.StartServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.StopServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.StopServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.SuspendServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.SuspendServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.UnlockServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.UnlockServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.UnpauseServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.UnpauseServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.UnrescueServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.UnrescueServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.UnsetServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.UnsetServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server.UnshelveServer(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server.UnshelveServer (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.server_backup module

Compute v2 Server action implementations

class openstackclient.compute.v2.server_backup.CreateServerBackup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

IMAGE_API_VERSIONS = {'1': 'openstackclient.image.v1.image', '2': 'openstackclient.image.v2.image'}
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_backup.CreateServerBackup (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.server_event module

Compute v2 Server operation event implementations

class openstackclient.compute.v2.server_event.ListServerEvent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_event.ListServerEvent (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.server_event.ShowServerEvent(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_event.ShowServerEvent (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.server_group module

Compute v2 Server Group action implementations

class openstackclient.compute.v2.server_group.CreateServerGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_group.CreateServerGroup (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

class openstackclient.compute.v2.server_group.DeleteServerGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_group.DeleteServerGroup (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.server_group.ListServerGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_group.ListServerGroup (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.server_group.ShowServerGroup(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_group.ShowServerGroup (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.server_image module

Compute v2 Server action implementations

class openstackclient.compute.v2.server_image.CreateServerImage(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

IMAGE_API_VERSIONS = {'1': 'openstackclient.image.v1.image', '2': 'openstackclient.image.v2.image'}
get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.server_image.CreateServerImage (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

openstackclient.compute.v2.service module

Service action implementations

class openstackclient.compute.v2.service.DeleteService(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.service.DeleteService (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

class openstackclient.compute.v2.service.ListService(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.service.ListService (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.service.SetService(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Command

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.service.SetService (WARNING)>
take_action(parsed_args)

Override to do something useful.

The returned value will be returned by the program.

openstackclient.compute.v2.usage module

Usage action implementations

class openstackclient.compute.v2.usage.ListUsage(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.Lister

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.usage.ListUsage (WARNING)>
take_action(parsed_args)

Return a tuple containing the column names and an iterable containing the data to be listed.

class openstackclient.compute.v2.usage.ShowUsage(app, app_args, cmd_name=None)

Bases: osc_lib.command.command.ShowOne

get_parser(prog_name)

Return an argparse.ArgumentParser.

log = <Logger openstackclient.compute.v2.usage.ShowUsage (WARNING)>
take_action(parsed_args)

Return a two-part tuple with a tuple of column names and a tuple of values.

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.