Skip to main content
POST
Restart a VM

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

ID of the project

Pattern: ^pj[0-9a-hj-km-np-tv-z]{24}$
Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

location
string
required

The Ubicloud location/region

Example:

"eu-central-h1"

vm_reference
string
required

Virtual machine ID or name Resource ID or name

Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$

Response

A VM

boot_image
string
required

Boot image of the VM

id
string
required

ID of the VM

Pattern: ^vm[0-9a-hj-km-np-tv-z]{24}$
Example:

"vmhfy8gff8c67hasb0eez2k1pd"

ip4
string<ipv4> | null
required

IPv4 address

ip4_enabled
boolean
required

Whether IPv4 is enabled

ip6
string<ipv6> | null
required

IPv6 address

location
string
required

Location of the VM

Example:

"eu-central-h1"

name
string
required

Name of the VM

Example:

"my-vm-name"

size
string
required

Size of the underlying VM

state
string
required

State of the VM

storage_size_gib
integer
required

Storage size in GiB

unix_user
string
required

Unix user of the VM

firewalls
object[]
required

List of firewalls

private_ipv4
string<ipv4>
required

Private IPv4 address

private_ipv6
string<ipv6>
required

Private IPv6 address

subnet
string
required

Subnet of the VM

gpu
string

GPU configuration