Instances
instances
Methods
Assign the security group to the server. To assign multiple security groups to all ports, use the NULL value for the port_id field
Attach interface to instance
Change the flavor of the server instance
Check if regional quota is exceeded, if yes the number of additional quotas needed to create the specified instance will be calculated
Create one or many instances or basic VMs. For Linux instances, use the 'username' and 'password' to create a new user. When only 'password' is provided, it is set as the password for the default user of the image. The 'user_data' is ignored when the 'password' is specified. Use the 'user_data' field to provide a cloud-init script in base64 to apply configurations to the instance. For Windows instances, the 'username' cannot be specified in the request. Use the 'password' field to set the password for the 'Admin' user on Windows. Use the 'user_data' field to provide a cloudbase-init script in base64 to create new users on Windows. The password of the Admin user cannot be updated via 'user_data'.
Delete instance
Detach interface from instance
Get instance console URL
Get instance metrics, including cpu, memory, network and disk metrics
Deprecated. Get instance naming restrictions that are applied to specified project and region.
List of server security groups
The date and time stamp format in changes-since or changes-before should be ISO 8601: CCYY-MM-DDThh:mm:ss±hh:mm For example, 2015-08-27T09:49:58-05:00. Values must be urlencoded. If the time zone is omitted, the UTC time zone is assumed. When both changes-since and changes-before are specified, the value of the changes-since must be earlier than or equal to the value of the changes-before.
Retrieve a list of flavors. When the include_prices query parameter is specified, the list shows prices. A client in trial mode gets all price values as 0. If you get Pricing Error contact the support
List network interfaces attached to the instance
List network ports of instance
The action can be one of: start, stop, reboot, powercycle, suspend or resume. Suspend and resume are not available for baremetal instances.
Powercycle (stop and start) the instance, aka hard reboot
Put instance into the server group
Deprecated. Reboot instance
Remove instance from the server group
Rename instance
Resume a suspended server to an active state.
Get instance
Search for instance in all clients of the reseller
Power on the server. Required VM state: Shutoff, Stopped
Power off the server. Required VM state: Active, Shutoff, Rescued
When you suspend a server, its VM state is stored on disk, all memory is written to disk, and the virtual machine is stopped. Suspending a server is similar to placing a device in hibernation, and its occupied resource will not be freed but rather kept for when the server is resumed. Required VM state: Active, Shutoff
Un-assign the security group to the server. To un-assign multiple security groups to all ports, use the NULL value for the port_id field
App Templates
instances.app_templates
Methods
Retrieve marketplace application templates list. Application templates are used in instance creation API v2
Get apptemplate
Available Flavors
instances.available_flavors
Methods
Get flavors available for a potential instance
Get flavors available for the instance to resize into
Metadata
instances.metadata
Methods
Create or update one or more metadata items for an instance. If an item does not exist, it gets created in the server metadata. If an item already exists, it's value is overwritten
Delete instance metadata item by key. This endpoint does not support special characters in keys. Use /v2/instances/.../metadata_item instead.
Get instance metadata item by key. This endpoint does not support special characters in keys. Use /v2/instances/.../metadata_item instead.
Lists all metadata for an instance
All existing metadata is deleted and replaced with the metadata from the request
Metadata Item
instances.metadata_item
Methods
Delete instance metadata item by key
Meta key
Get instance metadata item by key
Reseller Name Templates
instances.reseller_name_templates
Methods
Delete the reseller's name_templates setting and drop all naming restrictions on the region.
Get naming restrictions that are applied to specified project and region.
List name template configs of the reseller.
Update or create reseller naming configuration.