Skip to main content

Virtual Machines

API operations for creating and managing virtual machine resources and their associated features.

On this page


Core virtual machine operations

A set of operations for creating virtual machines and retrieving information about your existing virtual machines.

Endpoint NameURLDescription
Create virtual machines /core/virtual-machinesCreates one or more virtual machines with the specified custom configuration and features.
List virtual machinesGET /core/virtual-machinesReturns a list of your existing virtual machines.
Retrieve virtual machine detailsGET /core/virtual-machines/\{id}Retrieves the details of an existing virtual machine.

Manage existing virtual machine operations

A set of operations for managing existing virtual machine resources.

Endpoint NameURLDescription
Start virtual machineGET /core/virtual-machines/\{id}/startStarts a virtual machine.
Stop virtual machineGET /core/virtual-machines/\{id}/stopShuts down a virtual machine.
Hard-reboot virtual machineGET /core/virtual-machines/\{id}/hard-rebootReboots a virtual machine.
Hibernate virtual machineGET /core/virtual-machines/\{id}/hibernateInitiates the hibernation of a virtual machine.
Restore hibernated virtual machineGET /core/virtual-machines/\{id}/hibernate-restoreResumes a virtual machine from hibernation.
Resize virtual machineGET /core/virtual-machines/\{virtual_machine_id}/resizeModifies the hardware specifications of a virtual machine.
Delete virtual machineDELETE /core/virtual-machines/\{id}Permanently deletes a virtual machine.

Metrics and events history operations

Operations for retrieving virtual machine metrics data and a history of events executed on a VM.

Endpoint NameURLDescription
Retrieve virtual machine performance metricsGET /core/virtual-machines/\{id}/metricsRetrieves performance metrics data for a virtual machine.
Retrieve virtual machine events historyGET /core/virtual-machines/\{id}/eventsRetrieves history of events for a virtual machine.

Firewall operations

Operations for creating and managing firewall rules for virtual machines.

Endpoint NameURLDescription
Add firewall rule to virtual machine /core/virtual-machines/\{id}/sg-rulesAdds a firewall rule to a virtual machine.
Delete firewall rule from virtual machineDELETE /core/virtual-machines/{id}/sg-rules/\{sg_rule_id}Deletes a firewall rule from a virtual machine.

Public IP operations

Operations for managing public IP addresses attached to virtual machines.

Endpoint NameURLDescription
Attach public IP to virtual machine /core/virtual-machines/\{id}/attach-floatingipAttaches a public IP address to a virtual machine.
Detach public IP from virtual machineGET /core/virtual-machines/\{id}/stopRemoves a public IP address from a virtual machine.

Virtual machine callback operations

Operations for managing virtual machine callbacks.

Endpoint NameURLDescription
Attach callback to virtual machine /core/virtual-machines/\{id}/attach-callbackCreates a callback URL for a specified volume.
Update virtual machine callbackPUT /core/virtual-machines/\{id}/update-callbackUpdates the callback URL for a specified volume.
Delete virtual machine callbackDELETE /core/virtual-machines/\{id}/delete-callbackDeletes a callback URL attached to a volume.

VNC Console

Operations for retrieving the VNC console for a specified virtual machine.

Endpoint NameURLDescription
Retrieve API path for VNC ConsoleGET /core/virtual-machines/\{id}/request-consoleRetrieves the endpoint path to be sent in the GET /core/virtual-machines/{virtual_machine_id}/console/\{job_id} request.
Retrieve URL for VNC consoleGET /core/virtual-machines/{virtual_machine_id}/console/\{job_id}Retrieves the URL to access the VNC console.

The instances object

The response to virtual machine endpoint API requests includes the instances object, which provides comprehensive details about your virtual machines. This information includes hardware specifications, security configuration, current power state, storage details, date and time of initiation, and more.


Attributes


id integer

The unique identifier for the virtual machine.


name string

The name of the virtual machine.


status string

The current status of the virtual machine (e.g., "ACTIVE").


environment object

An object containing information about the environment in which the virtual machine is deployed.

Show child attributes
name string

The name of the environment.


image object

An object containing information about the operating system image installed on the virtual machine.

Show child attributes
name string

The name of the operating system image.


flavor object

An object containing details about the flavor (hardware configuration) of the virtual machine.

Show child attributes
id integer

The unique identifier for the flavor.

name string

The name of the flavor.

cpu integer

The number of CPUs in the flavor.

ram number

The amount of RAM in the flavor (in gigabytes).

disk integer

The size of the disk associated with the flavor (in gigabytes).

gpu string

The type of GPU associated with the flavor.

gpu_count integer

The number of GPUs associated with the flavor.


os string

The operating system installed on the virtual machine.


keypair object

An object containing information about the SSH key pair associated with the virtual machine.

Show child attributes
name string

The name of the key pair.


volume_attachments array

An array containing information about attached volumes.

Show child attributes
volume object

An object containing details about the attached volume.

Show child attributes
id integer

The unique identifier for the volume.

name string

The name of the volume.

description string

The description of the volume.

volume_type string

The type of the volume.

size integer

The size of the volume.


status string

The status of the volume attachment.

device string

The device name associated with the volume attachment.

created_at date-time

The timestamp when the volume attachment was created.


security_rules array

An array containing objects providing details on firewall rules applied to the virtual machine.

Show child attributes
id integer

The unique identifier for the firewall rule.


direction string

The direction of the firewall rule (e.g., "egress", "ingress").


protocol string

The protocol associated with the firewall rule.


port_range_min integer

The minimum port range for the firewall rule.


port_range_max integer

The maximum port range for the firewall rule.


ethertype string

The Ethernet type for the firewall rule (e.g., "IPv4", "IPv6").


remote_ip_prefix string

The remote IP prefix associated with the firewall rule.


status string

The status of the firewall rule (e.g., "SUCCESS").


created_at date-time

The timestamp when the firewall rule was created.


power_state string

The power state of the virtual machine (e.g., "RUNNING").


vm_state string

The state of the virtual machine (e.g., "active").


fixed_ip string

The fixed IP address assigned to the virtual machine.


floating_ip string

The floating IP address assigned to the virtual machine.


floating_ip_status string

The status of the floating IP address (e.g., "NO FLOATING IP").


contract_id integer

The ID of the contract that affects the billing agreement for this virtual machine.


labels array of strings

An array of labels applied to the virtual machine for organizational and identification purposes. These labels can be updated after VM deployment using the update virtual machine labels endpoint.


created_at date-time

The timestamp when the virtual machine was created.

The instances object
    {
"id": 0,
"name": "string",
"status": "string",
"environment": {
"name": "string",
},
"image": {
"name": "string"
},
"flavor": {
"id": 0,
"name": "string",
"cpu": 0,
"ram": 0,
"disk": 0,
"gpu": "string",
"gpu_count": 0
},
"os": "string",
"keypair": {
"name": "string"
},
"volume_attachments": [
{
"volume": {
"id": 0,
"name": "string",
"description": "string",
"volume_type": "string",
"size": 0
},
"status": "string",
"device": "string",
"created_at": "1970-01-01T00:00:00.000Z"
}
],
"security_rules": [
{
"id": 0,
"direction": "string",
"protocol": "string",
"port_range_min": 0,
"port_range_max": 0,
"ethertype": "string",
"remote_ip_prefix": "string",
"status": "string",
"created_at": "1970-01-01T00:00:00.000Z"
}
],
"power_state": "string",
"vm_state": "string",
"fixed_ip": "string",
"floating_ip": "string",
"floating_ip_status": "string",
"contract_id": null,
"labels": [],
"created_at": "1970-01-01T00:00:00.000Z",
}

Back to top