vm

vm analyze constraints

Usage

usage: -c vm analyze constraints [-h]
                              [-f {adaptive_table,csv,json,table,value,yaml}]
                              [-c COLUMN]
                              [-m [NAME=VALUE [NAME=VALUE ...]]]
                              [--max-width <integer>] [--noindent]
                              [--quote {all,minimal,none,nonnumeric}]
                              vm_id

Description

Checks what can be done to enable a VM that is currently not able to run on the cluster, to start running.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm cancel-migration

Usage

usage: -c vm cancel-migration [-h]
                           [-f {adaptive_table,json,shell,table,value,yaml}]
                           [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                           [--max-width <integer>] [--noindent]
                           [--prefix PREFIX]
                           vm_id

Description

Cancel migration of a migrating instance. The action will cause the VM to stop migrating immediately.

Return

Returns dict: The VM

Optional

 optional arguments:
-h, --help            show this help message and exit

vm create

Usage

usage: -c vm create [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 [--image-id IMAGE_ID] [--vcpus VCPUS] [--ram RAM]
                 [--project-id PROJECT_ID] [--disk-size DISK_SIZE]
                 [--net-id NET_ID] [--profile PROFILE]
                 [--restart-on-failure] [--tags [TAGS [TAGS ...]]]
                 [--boot-volumes BOOT_VOLUMES]
                 [--volumes-to-attach [VOLUMES_TO_ATTACH [VOLUMES_TO_ATTACH ...]]]
                 [--user-data USER_DATA] [--metadata METADATA] [--powerup]
                 [--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]]
                 [--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]]
                 [--key-pair KEY_PAIR] [--key-map KEY_MAP]
                 [--instance-type INSTANCE_TYPE]
                 [--hw-firmware-type HW_FIRMWARE_TYPE]
                 [--networks NETWORKS] [--guest-os GUEST_OS] [--pool POOL]
                 [--disable-delete] [--instance-profile INSTANCE_PROFILE]
                 [--availability-zone AVAILABILITY_ZONE]
                 [--protection-group-id PROTECTION_GROUP_ID] [--bdm BDM]
                 [--dryrun] [--os-type-id OS_TYPE_ID]
                 name

Description

Creates a VM workload.

Return

Returns dict: Details of the newly created VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--image-id IMAGE_ID   Image ID from which to create the VM. Either --image-id or --boot-volumes
                      must be defined
--vcpus VCPUS         The number of vCPUs in the VM
--ram RAM             The amount of RAM (MiB) in the VM
--project-id PROJECT_ID
                      Create the VM in the given project instead of the one logged-in to. Only available
                      for system admins of the default domain
--disk-size DISK_SIZE
                      Amount of disk space (GB) in the VM (only if greater than the disk space of the source
                      Image or boot volume)
--net-id NET_ID       The ID of the network to which to attach the VM
--profile PROFILE     Sets the SLA profile of the VM to one of the following profiles: spot, 'on demand',
                      reserved). Default: on demand
--restart-on-failure  Restarts the VM if it fails
--tags [TAGS [TAGS ...]]
                      One or more tags with which to categorize the VM
--boot-volumes BOOT_VOLUMES
                      Defines the boot volume of the new VM. If there is more than one boot volume it also
                      indicates the volumes' boot order. Two formats are supported
                      For a CLI call: the volumes are represented by id=xx:disk_bus=xx:device_type=xx,...
                      For an API call: the volumes are represented by '[{"id": "xx", "disk_bus": "xx",
                      "device_type": "xx"},...]'.
                      Either --boot-volumes or --image-id must be defined
--volumes-to-attach [VOLUMES_TO_ATTACH [VOLUMES_TO_ATTACH ...]]
                      The ID of one or more additional volumes to be attached to the VM
--user-data USER_DATA
                      A base64 encoded cloud-init script to use upon launch of the VM
--metadata METADATA   Extra metadata to apply to the new VM
--powerup             Whether the VM should be powered up upon creation
--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]
                      The name or ID of one or more security groups to be assigned to the default
                      VPC network or net_id, upon creation of the VM
                      If security groups are defined via this argument, then they cannot also be
                      defined via --security-group-ids or --networks
                      If security groups have not been defined either via the --security-groups
                      or --security-group-ids arguments, then the default security groups
                      of the default VPC network will be assigned
--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]
                      The ID of one or more security groups to be assigned to the default
                      VPC network or net_id, upon creation of the VM.
                      If security groups are defined by this argument, then they cannot be
                      defined via --security-group or --networks.
                      If security groups have not been defined either via the
                      --security-group-ids or --security-groups arguments,
                      then the default security groups of the default VPC network
                      will be assigned
--key-pair KEY_PAIR   The name of a key pair to attach to the VM
--key-map KEY_MAP     Sets the default keyboard language for the VM. Default: en-us (Deprecated)
--instance-type INSTANCE_TYPE
                      The name of the instance type of the VM. This overrides any defined --ram, --vcpus
                      and --disk-size
--hw-firmware-type HW_FIRMWARE_TYPE
                      Sets the hardware firmware type of the VM as either bios or uefi. Default: bios
--networks NETWORKS   One or more networks to which to attach the VM as defined by the following
                      parameters: '[{"port_id": "xx"},..]' or '[{"net_id": "xx", "ipv4": "xx",
                      "mac": "xx", "security_groups": "[xx]", "security_group_ids": "[xx]",
                      "port_security_enabled": "xx", "dns_name": "xx", "device_index": "xx"}]'
                      The parameter 'security-groups' will access security groups that have been defined
                      for the project for which the VM is created, either by name or ID.
                      The parameter 'security-group-ids' will access these security groups by ID only.
                      When this argument --networks is used, then the arguments --security-groups and
                      --security-group-ids cannot be used
--guest-os GUEST_OS   Sets the guest OS type as either linux, windows, or solaris
--pool POOL           The pool in which to create the VM. The image must to be in this pool.
                      Use the 'image copy-to-pools' API to copy the image to the pool
--disable-delete      Prevents deletion of the VM. (VM deletion can be re-enabled later.)
--instance-profile INSTANCE_PROFILE
                      The ID of an instance profile to attach to the VM
--availability-zone AVAILABILITY_ZONE
                      The name of an availability zone the VM will be created in
--protection-group-id PROTECTION_GROUP_ID
                      The ID of the protection group responsible for creating this VM snapshot
--bdm BDM             A list of block device mappings for the VM.
                      Each of the items in the list is a dictionary with optional keys 'snapshot_id',
                      'boot_index', 'volume_size_gib', 'storage_pool', 'disk_type' and 'bus_type'.
                      If 'boot_index' is specified, then 'disk_type' and 'bus_type' must be specified as well.
                      The values of 'boot_index' in the BDM, if specified, must be sequential and start with 0
                      (although they do not need to be ordered this way in the input). 'disk_type', if specified,
                      must be either 'disk' or 'cdrom'. 'bus_type', if specified, must be either
                      'ide' or 'virtio'. If not specified, the defaults are 'disk' and 'virtio'.
                      This parameter is mutually exclusive with both boot_volumes and volumes_to_attach
                      parameters.
                      Example:
                      [{"snapshot_id":"ca166313-7050-42d6-87da-7e3e70f611e6","boot_index":0,"disk_type":"disk","bus_type":"ide"},
                      {"snapshot_id":"9a7fed24-b69a-43dc-85ab-21b318c685ac"}]
--dryrun              If true, verify parameters without creating an actual VM
--os-type-id OS_TYPE_ID
                      If given, will create the new server with this operating system id
                      as the vm provided os type

vm force-complete-migration

Usage

usage: -c vm force-complete-migration [-h]
                                   [-f {adaptive_table,json,shell,table,value,yaml}]
                                   [-c COLUMN]
                                   [-m [NAME=VALUE [NAME=VALUE ...]]]
                                   [--max-width <integer>] [--noindent]
                                   [--prefix PREFIX]
                                   vm_id

Description

Force complete migration of an instance during migration. The action will migrate the VM to migrate immediately. The VM will stop during the migration completion.

Return

Returns dict: The VM

Optional

 optional arguments:
-h, --help            show this help message and exit

vm get

Usage

usage: -c vm get [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
              [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
              [--max-width <integer>] [--noindent] [--prefix PREFIX]
              vm_id

Description

Gets the details of a specific VM.

Return

Returns dict: The details of a specific VM

Optional

 optional arguments:
-h, --help            show this help message and exit

vm get-console-output

Usage

usage: -c vm get-console-output [-h]
                             [-f {adaptive_table,json,shell,table,value,yaml}]
                             [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                             [--max-width <integer>] [--noindent]
                             [--prefix PREFIX]
                             vm_id

Description

Show the console output for a VM.

Return

Returns dict: The console output

Optional

 optional arguments:
-h, --help            show this help message and exit

vm get-password-data

Usage

usage: -c vm get-password-data [-h]
                            [-f {adaptive_table,json,shell,table,value,yaml}]
                            [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                            [--max-width <integer>] [--noindent]
                            [--prefix PREFIX]
                            vm_id

Description

Get the encrypted Windows password for a VM.

Return

Returns dict: The encrypted password data

Optional

 optional arguments:
-h, --help            show this help message and exit

vm list

Usage

usage: -c vm list [-h] [-f {adaptive_table,csv,json,table,value,yaml}]
               [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
               [--max-width <integer>] [--noindent]
               [--quote {all,minimal,none,nonnumeric}] [--detailed]
               [--tag [TAG [TAG ...]]] [--id [ID [ID ...]]]
               [--project [PROJECT [PROJECT ...]]]
               [--image [IMAGE [IMAGE ...]]]
               [--status [STATUS [STATUS ...]]]
               [--key-pair [KEY_PAIR [KEY_PAIR ...]]]
               [--bdm-device-name [BDM_DEVICE_NAME [BDM_DEVICE_NAME ...]]]
               [--bdm-volume-id [BDM_VOLUME_ID [BDM_VOLUME_ID ...]]]
               [--host-name [HOST_NAME [HOST_NAME ...]]]
               [--instance-type [INSTANCE_TYPE [INSTANCE_TYPE ...]]]
               [--created [CREATED [CREATED ...]]]
               [--name [NAME [NAME ...]]] [--show-recently-deleted]
               [--migration-enabled MIGRATION_ENABLED]
               [--availability-zone [AVAILABILITY_ZONE [AVAILABILITY_ZONE ...]]]
               [--private-dns-name [PRIVATE_DNS_NAME [PRIVATE_DNS_NAME ...]]]
               [--tag-key [TAG_KEY [TAG_KEY ...]]]

Description

List VMs.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--detailed            Show detailed list
--tag [TAG [TAG ...]]
                      Filter VMs by attached tags
--id [ID [ID ...]]    Filter by VM ID
--project [PROJECT [PROJECT ...]]
                      Filter VM by project ID
--image [IMAGE [IMAGE ...]]
                      Filter by VM image ID
--status [STATUS [STATUS ...]]
                      Filter by VM status
--key-pair [KEY_PAIR [KEY_PAIR ...]]
                      Filter by VM key-pair name
--bdm-device-name [BDM_DEVICE_NAME [BDM_DEVICE_NAME ...]]
                      Filter by VM block device mapping device name
--bdm-volume-id [BDM_VOLUME_ID [BDM_VOLUME_ID ...]]
                      Filter by block device mapping volume ID
--host-name [HOST_NAME [HOST_NAME ...]]
                      Filter by host that the VM is running on
--instance-type [INSTANCE_TYPE [INSTANCE_TYPE ...]]
                      Filter by VM instance type
--created [CREATED [CREATED ...]]
                      Filter by VM created time
--name [NAME [NAME ...]]
                      Filter by VM name
--show-recently-deleted
                      Show also VMs that were recently deleted
--migration-enabled MIGRATION_ENABLED
                      Filter by the ability of a VM to migrate
--availability-zone [AVAILABILITY_ZONE [AVAILABILITY_ZONE ...]]
                      Filter VMs by availability zone
--private-dns-name [PRIVATE_DNS_NAME [PRIVATE_DNS_NAME ...]]
                      Filter by the VM's private DNS name of its primary port
--tag-key [TAG_KEY [TAG_KEY ...]]
                      Filter by the tag key regardless of the tag value

vm list-metadata

Usage

usage: -c vm list-metadata [-h]
                        [-f {adaptive_table,json,shell,table,value,yaml}]
                        [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                        [--max-width <integer>] [--noindent]
                        [--prefix PREFIX]
                        vm_id

Description

Returns all metadata of a VM.

Return

Returns dict: Metadata

Optional

 optional arguments:
-h, --help            show this help message and exit

vm list-sla-profiles

Usage

usage: -c vm list-sla-profiles [-h]
                            [-f {adaptive_table,csv,json,table,value,yaml}]
                            [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                            [--max-width <integer>] [--noindent]
                            [--quote {all,minimal,none,nonnumeric}]

Description

List SLA profiles in the system.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm live-migrate

Usage

usage: -c vm live-migrate [-h]
                       [-f {adaptive_table,json,shell,table,value,yaml}]
                       [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                       [--max-width <integer>] [--noindent]
                       [--prefix PREFIX]
                       vm_id hostname

Description

Migrate VM to another node.

Return

Returns dict: The VM

Optional

 optional arguments:
-h, --help            show this help message and exit

vm network-replace

Usage

usage: -c vm network-replace [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--ipv4 IPV4] [--mac MAC]
                          [--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]]
                          [--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]]
                          [--port-security-enabled PORT_SECURITY_ENABLED]
                          [--dns-name DNS_NAME]
                          [--device-index DEVICE_INDEX]
                          vm_id port_id new_network_id

Description

Replace the network on the provided network interface with the provided new network.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--ipv4 IPV4           Address to allocate to the VM
--mac MAC             MAC address to allocate to VM
--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]
                      A list of security group names to assign to the VM upon attachment,
                      if unspecified the default security group for tenant is used
--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]
                      A list of security groups ids to assign to the VM upon attachment,
                      if unspecified the default security group for tenant is used
--port-security-enabled PORT_SECURITY_ENABLED
                      Optional, if specified overrides whether port security
                      (anti-spoofing and security groups) is enabled, otherwise
                      inherited from port_security_enabled setting of network
--dns-name DNS_NAME   Host name to be published by the network local DNS server
--device-index DEVICE_INDEX
                      The index at which to attach the port to the VM

vm networks attach

Usage

usage: -c vm networks attach [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--ipv4 IPV4] [--mac MAC]
                          [--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]]
                          [--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]]
                          [--port-security-enabled PORT_SECURITY_ENABLED]
                          [--dns-name DNS_NAME]
                          [--device-index DEVICE_INDEX]
                          vm_id network_id

Description

Attach the VM to the network.

Return

Returns dict: The VM’s object

Optional

 optional arguments:
-h, --help            show this help message and exit
--ipv4 IPV4           Address to allocate to the VM
--mac MAC             MAC address to allocate to the VM
--security-groups [SECURITY_GROUPS [SECURITY_GROUPS ...]]
                      A list of security groups to assign to the VM upon attachment,
                      if unspecified the default security group for tenant is used
                      if security_groups are given then can't get security_group_ids
--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]
                      A list of security groups to assign to the VM upon attachment,
                      if unspecified the default security group for tenant is used
                      if security_group_ids are given then can't get security_groups
--port-security-enabled PORT_SECURITY_ENABLED
                      Optional, if specified overrides whether port security
                      (anti-spoofing and security groups) is enabled, otherwise
                      inherited from port_security_enabled setting of network
--dns-name DNS_NAME   Host name to be published by the network local DNS server
--device-index DEVICE_INDEX
                      The index at which to attach the port to the VM

vm networks detach

Usage

usage: -c vm networks detach [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX]
                          vm_id network_id

Description

Detach the VM from the network.

Return

Returns dict: The VM’s object

Optional

 optional arguments:
-h, --help            show this help message and exit

vm pause

Usage

usage: -c vm pause [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                [--max-width <integer>] [--noindent] [--prefix PREFIX]
                vm_id

Description

Pause VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit

vm port attach

Usage

usage: -c vm port attach [-h]
                      [-f {adaptive_table,json,shell,table,value,yaml}]
                      [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                      [--max-width <integer>] [--noindent]
                      [--prefix PREFIX] [--device-index DEVICE_INDEX]
                      vm_id port_id

Description

Attach a port (network interface) to a given VM.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--device-index DEVICE_INDEX
                      The index at which to attach the port to the VM

vm port detach

Usage

usage: -c vm port detach [-h]
                      [-f {adaptive_table,json,shell,table,value,yaml}]
                      [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                      [--max-width <integer>] [--noindent]
                      [--prefix PREFIX]
                      port_id

Description

Detach a port (network interface) from a VM.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm reboot

Usage

usage: -c vm reboot [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 [--hard] [--override-protection]
                 vm_id

Description

Reboot VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit
--hard                Do hard reboot
--override-protection
                      If True, will reboot the VM even if the VM is protected,
                      e.g. an internal resource. Allowed only for admins

vm rebuild

Usage

usage: -c vm rebuild [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                  [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                  [--max-width <integer>] [--noindent] [--prefix PREFIX]
                  [--newname NEWNAME] [--user-data USER_DATA]
                  [--delete-source-boot-volume]
                  vm_id new_image_id

Description

Create a new boot volume for the VM, from the given image.

Return

Returns dict: The VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--newname NEWNAME     An optional new name for the VM
--user-data USER_DATA
                      New user data for the VM
--delete-source-boot-volume
                      A flag to indicate whether to delete the VM's original boot volume

vm remove

Usage

usage: -c vm remove [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 [--force] [--sync] [--override-protection]
                 vm_id

Description

Delete a VM.

Return

Returns dict: The VM’s object

Optional

 optional arguments:
-h, --help            show this help message and exit
--force               If True, will delete also if the VM is powered-on
--sync                Make the operation synchronous, meaning only return when the
                      VM is deleted. For backward-compatibility
--override-protection
                      If True, will delete even if the VM is protected from deletion
                      e.g. an internal resource. Allowed only for admins

vm rename

Usage

usage: -c vm rename [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 vm_id newname

Description

Rename VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit

vm reset-migration

Usage

usage: -c vm reset-migration [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--override-protection]
                          vm_id

Description

Reset the VM state to active in case it has been in migrating state for more than 5 minutes.

Return

Returns dict: The VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--override-protection
                      If True, will reset migration state even if the VM is protected,
                      e.g. an internal resource. Allowed only for admins

vm resize

Usage

usage: -c vm resize [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 [--vcpus VCPUS] [--ram RAM] [--disk-size DISK_SIZE]
                 [--instance-type INSTANCE_TYPE] [--volume-id VOLUME_ID]
                 vm_id

Description

Re-size the VM and one if its volumes.

Return

Returns dict: The re-sized VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--vcpus VCPUS         The requested amount of vCPUs to update
--ram RAM             The requested size of ram to update
--disk-size DISK_SIZE
                      The requested size of disk to update, in GB
--instance-type INSTANCE_TYPE
                      The instance type to update (instead of ram, vcpus, disk above)
--volume-id VOLUME_ID
                      ID of an attached volume to extend. If omitted, the boot volume will get extended

vm restore

Usage

usage: -c vm restore [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                  [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                  [--max-width <integer>] [--noindent] [--prefix PREFIX]
                  [--powerup] [--name NAME] [--new-addresses]
                  [--instance-type INSTANCE_TYPE] [--networks NETWORKS]
                  [--disk-size DISK_SIZE] [--vcpus VCPUS] [--ram RAM]
                  [--profile PROFILE] [--restart-on-failure]
                  [--tags [TAGS [TAGS ...]]] [--metadata METADATA]
                  [--key-pair KEY_PAIR]
                  [--hw-firmware-type HW_FIRMWARE_TYPE] [--pool POOL]
                  [--disable-delete] [--instance-profile INSTANCE_PROFILE]
                  vm_snapshot_id

Description

Restore a VM from a VM snapshot.

Return

Returns dict: Details of the newly created VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--powerup             Whether the VM should be powered up upon creation
--name NAME           If given, overrides the name of the instance in the instance snapshot
--new-addresses       If given, use the network definitions from the VM snapshot, but generate new IPv4 and MAC addresses
--instance-type INSTANCE_TYPE
                      Override the instance type in the VM snapshot. This overrides any defined --ram, --vcpus
                      and --disk_size
--networks NETWORKS   If given, overrides network definitions in the VM snapshot. Format is same as --networks in vm create
--disk-size DISK_SIZE
                      Override the amount of disk space (GB) in the VM Snapshot (only if greater than the disk space of the source
                      Image or boot volume)
--vcpus VCPUS         Override the number of vCPUs in the VM snapshot
--ram RAM             Override the amount of RAM (MiB) in the VM snapshot
--profile PROFILE     Overrides the SLA profile of the VM to one of the following profiles: spot, 'on demand',
                      reserved
--restart-on-failure  Override the restart_on_failure attribute in the VM snapshot
--tags [TAGS [TAGS ...]]
                      Override the tags in the VM snapshot
--metadata METADATA   Override the metadata in the VM snapshot
--key-pair KEY_PAIR   Override the name of a key pair in the VM snapshot
--hw-firmware-type HW_FIRMWARE_TYPE
                      Override the hardware firmware type of the VM as either bios or uefi
--pool POOL           Override pool in which to create the VM
--disable-delete      Override the disable_delete attribute in the VM snapshot
--instance-profile INSTANCE_PROFILE
                      Override ID of an instance profile to attach to the VM

vm start

Usage

usage: -c vm start [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                [--max-width <integer>] [--noindent] [--prefix PREFIX]
                [--disk-bus DISK_BUS] [--virtio-volatile-volume] [--dryrun]
                [--override-protection]
                vm_id

Description

Start VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit
--disk-bus DISK_BUS   Disk bus emulation for the boot volume
--virtio-volatile-volume
                      If given, an extra volume will be created that is deleted on shutdown
--dryrun              Do not start the VM, instead analyze constraints on starting it
--override-protection
                      If true, powerup VM even if it's internal

vm stop

Usage

usage: -c vm stop [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
               [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
               [--max-width <integer>] [--noindent] [--prefix PREFIX]
               [--clean] [--force] [--override-protection]
               vm_id

Description

Stop VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit
--clean               Gracefully shutdown the server before deleting it. If force is set, this parameter is
                      set to false automatically
--force               Force VM shutdown
--override-protection
                      If True, will stop even if the VM is protected from deletion as internal
                      resources. Allowed only for admins

vm tag add

Usage

usage: -c vm tag add [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                  [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                  [--max-width <integer>] [--noindent] [--prefix PREFIX]
                  vm_id --tags [--tags ...]

Description

Add tags to a VM.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm tag remove

Usage

usage: -c vm tag remove [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                     [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                     [--max-width <integer>] [--noindent] [--prefix PREFIX]
                     vm_id --tags [--tags ...]

Description

Remove a tag from a VM.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm unpause

Usage

usage: -c vm unpause [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                  [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                  [--max-width <integer>] [--noindent] [--prefix PREFIX]
                  vm_id

Description

Resume paused VM.

Return

Returns dict: The VM object

Optional

 optional arguments:
-h, --help            show this help message and exit

vm update

Usage

usage: -c vm update [-h] [-f {adaptive_table,json,shell,table,value,yaml}]
                 [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                 [--max-width <integer>] [--noindent] [--prefix PREFIX]
                 [--restart-on-failure RESTART_ON_FAILURE]
                 [--key-map KEY_MAP] [--hw-firmware-type HW_FIRMWARE_TYPE]
                 [--disable-delete DISABLE_DELETE]
                 [--instance-profile INSTANCE_PROFILE]
                 [--src-dst-check SRC_DST_CHECK]
                 [--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]]
                 [--os-type-id OS_TYPE_ID]
                 [--vnc-admin-access VNC_ADMIN_ACCESS]
                 vm_id

Description

Update VM’s attributes.

Return

Returns dict: The updated VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--restart-on-failure RESTART_ON_FAILURE
                      Whether to restart the VM when it dies
--key-map KEY_MAP     Default keyboard of the VM (Deprecated)
--hw-firmware-type HW_FIRMWARE_TYPE
                      Hardware firmware type (BIOS, UEFI)
--disable-delete DISABLE_DELETE
                      Whether to disallow deletion of the VM
--instance-profile INSTANCE_PROFILE
                      Id of instance profile to update
--src-dst-check SRC_DST_CHECK
                      Set this flag on the VM port
--security-group-ids [SECURITY_GROUP_IDS [SECURITY_GROUP_IDS ...]]
                      List of security group ids to assign to the VM port
--os-type-id OS_TYPE_ID
                      OS-type-id of the VM to be updated
--vnc-admin-access VNC_ADMIN_ACCESS
                      Allow admin access to VM's VNC console

vm update-metadata

Usage

usage: -c vm update-metadata [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX]
                          vm_id metadata

Description

Update VM metadata - replace current metadata for a VM.

Return

Returns dict: Metadata

Optional

 optional arguments:
-h, --help            show this help message and exit

vm volumes attach

Usage

usage: -c vm volumes attach [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX] [--device-name DEVICE_NAME]
                         vm_id volume_id

Description

Attach a volume to a VM.

Return

Returns dict: Details of the VM

Optional

 optional arguments:
-h, --help            show this help message and exit
--device-name DEVICE_NAME
                      The device name (/dev/hd1|sd1|vd1|xvd1|ubd1)

vm volumes detach

Usage

usage: -c vm volumes detach [-h]
                         [-f {adaptive_table,json,shell,table,value,yaml}]
                         [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                         [--max-width <integer>] [--noindent]
                         [--prefix PREFIX]
                         vm_id volume_id

Description

Detach a volume from a VM.

Return

Returns dict: Details of the VM

Optional

 optional arguments:
-h, --help            show this help message and exit

vm-snapshot create

Usage

usage: -c vm-snapshot create [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--enable-incremental-backup]
                          [--description DESCRIPTION]
                          name vm_id

Description

Create a VM snapshot.

Return

Returns dict: Details of the new VM snapshot

Optional

 optional arguments:
-h, --help            show this help message and exit
--enable-incremental-backup
                      Allows creating incremental backups to a remote target
--description DESCRIPTION
                      Description for the VM snapshot

vm-snapshot create-from-remote-vm

Usage

usage: -c vm-snapshot create-from-remote-vm [-h]
                                         [-f {adaptive_table,json,shell,table,value,yaml}]
                                         [-c COLUMN]
                                         [-m [NAME=VALUE [NAME=VALUE ...]]]
                                         [--max-width <integer>]
                                         [--noindent] [--prefix PREFIX]
                                         [--name NAME]
                                         [--description DESCRIPTION]
                                         remote_vm_snapshot_id pool_id

Description

Create VM snapshot from a remote VM snapshot.

Return

Returns dict: Details of the local VM snapshot

Optional

 optional arguments:
-h, --help            show this help message and exit
--name NAME           Name of the new local VM snapshot. The default name is the remote VM snapshot name
--description DESCRIPTION
                      Description of the new local VM snapshot

vm-snapshot delete

Usage

usage: -c vm-snapshot delete [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX]
                          vm_snapshot_id

Description

Delete local VM snapshot.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit

vm-snapshot get

Usage

usage: -c vm-snapshot get [-h]
                       [-f {adaptive_table,json,shell,table,value,yaml}]
                       [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                       [--max-width <integer>] [--noindent]
                       [--prefix PREFIX]
                       vm_snapshot_id

Description

Retrieve VM snapshot metadata.

Return

Returns dict: Details of the VM snapshot

Optional

 optional arguments:
-h, --help            show this help message and exit

vm-snapshot list

Usage

usage: -c vm-snapshot list [-h]
                        [-f {adaptive_table,csv,json,table,value,yaml}]
                        [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                        [--max-width <integer>] [--noindent]
                        [--quote {all,minimal,none,nonnumeric}]
                        [--account-ids [ACCOUNT_IDS [ACCOUNT_IDS ...]]]
                        [--project-ids [PROJECT_IDS [PROJECT_IDS ...]]]
                        [--user-ids [USER_IDS [USER_IDS ...]]]
                        [--names [NAMES [NAMES ...]]]
                        [--statuses [STATUSES [STATUSES ...]]]
                        [--source-vm-ids [SOURCE_VM_IDS [SOURCE_VM_IDS ...]]]
                        [--protection-group-ids [PROTECTION_GROUP_IDS [PROTECTION_GROUP_IDS ...]]]
                        [--ids [IDS [IDS ...]]] [--detailed]

Description

List VM snapshots.

Return

None

Optional

 optional arguments:
-h, --help            show this help message and exit
--account-ids [ACCOUNT_IDS [ACCOUNT_IDS ...]]
                      Return VM snapshots with any of the specified account IDs
--project-ids [PROJECT_IDS [PROJECT_IDS ...]]
                      Return VM snapshots with any of the specified project IDs
--user-ids [USER_IDS [USER_IDS ...]]
                      Return VM snapshots with any of the specified user IDs
--names [NAMES [NAMES ...]]
                      Return VM snapshots with any of the specified names
--statuses [STATUSES [STATUSES ...]]
                      Return VM snapshots with any of the specified statuses
--source-vm-ids [SOURCE_VM_IDS [SOURCE_VM_IDS ...]]
                      Return VM snapshots with any of the specified source VM IDs
--protection-group-ids [PROTECTION_GROUP_IDS [PROTECTION_GROUP_IDS ...]]
                      Return VM snapshots created by any of the specified protection group IDs
--ids [IDS [IDS ...]]
                      Return VM snapshots with any of the specified ID
--detailed            Also return the parameters of the VM itself

vm-snapshot update

Usage

usage: -c vm-snapshot update [-h]
                          [-f {adaptive_table,json,shell,table,value,yaml}]
                          [-c COLUMN] [-m [NAME=VALUE [NAME=VALUE ...]]]
                          [--max-width <integer>] [--noindent]
                          [--prefix PREFIX] [--name NAME]
                          [--description DESCRIPTION]
                          vm_snapshot_id

Description

Update the VM snapshot.

Return

Returns dict: Details of the new VM snapshot

Optional

 optional arguments:
-h, --help            show this help message and exit
--name NAME           Name for the VM snapshot
--description DESCRIPTION
                      Description for the VM snapshot