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.
Only show instances which are able to handle floating address
Filters the instances by a date and time stamp when the instances last changed. Those instances that changed before or equal to the specified date and time stamp are returned.
Filters the instances by a date and time stamp when the instances last changed status.
Exclude instances with specified security group name
Filter out instances by flavor_id. Flavor id must match exactly. Example: "g1-standard-1-2"
Filter out instances by flavor_prefix. Example: "g1-standard" or "g1-"
Include AI instances. default False.
Include bare metal servers.default False.
Include k8s instances. default True.
An IPv4 address to filter results by. Regular expression allowed
Limit the number of returned instances
Filter by metadata key-value pairs. Must be a valid JSON string. curl -G --data-urlencode "metadata_kv={"key": "value"}" --url "http://localhost:1111/v1/instances/1/1"
Filter by metadata values. Must be a valid JSON string. curl -G --data-urlencode "metadata_v=["value", "sense"]" --url "http://localhost:1111/v1/instances/1/1"
Filter out instances by name. Use MySQL regular expression. Example: "^.est_...._[0-9]$". Also, any substring can be used and instances will be returned with names containing the substring. Example: "test".
Offset value is used to exclude the first set of records from the result
Include only isolated instances. default False.
Return bare metals only with external fixed IP addresses.
Order instances by transmitted fields and directions (name.asc).
Filter result by profile name. Effective only with with_ddos set to true.
Filter result by DDoS protection_status. if parameter is provided. Effective only with with_ddos set to true. (Active, Queued or Error)
Filters instances by a server status, as a string. Possible statuses are ACTIVE, ERROR, SHUTOFF, REBOOT, PAUSED, etc.
Return bare metals either only with advanced or only basic DDoS protection. Effective only with with_ddos set to true. (advanced or basic)
Filter the server list result by the UUID of the server. Allowed UUID part
DDoS profile information will be included to Bare metal servers
Include interfaces name
Number of objects
Objects
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
Number of objects
Objects
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
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.