curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/vm/{vm_reference}/restart \
--header 'Authorization: Bearer <token>'{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>",
"firewalls": [
{
"description": "<string>",
"firewall_rules": [
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>",
"description": "<string>"
}
],
"id": "fwfg7td83em22qfw9pq5xyfqb7",
"location": "<string>",
"name": "<string>"
}
],
"private_ipv4": "127.0.0.1",
"private_ipv6": "2606:4700:3108::ac42:2835",
"subnet": "<string>",
"gpu": "<string>"
}curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/vm/{vm_reference}/restart \
--header 'Authorization: Bearer <token>'{
"id": "vmhfy8gff8c67hasb0eez2k1pd",
"ip4": "127.0.0.1",
"ip4_enabled": true,
"ip6": "2606:4700:3108::ac42:2835",
"location": "eu-central-h1",
"name": "my-vm-name",
"size": "<string>",
"state": "<string>",
"storage_size_gib": 123,
"unix_user": "<string>",
"firewalls": [
{
"description": "<string>",
"firewall_rules": [
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>",
"description": "<string>"
}
],
"id": "fwfg7td83em22qfw9pq5xyfqb7",
"location": "<string>",
"name": "<string>"
}
],
"private_ipv4": "127.0.0.1",
"private_ipv6": "2606:4700:3108::ac42:2835",
"subnet": "<string>",
"gpu": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the project
"pjkkmx0f2vke4h36nk9cm8v8q0"
The Ubicloud location/region
"eu-central-h1"
Virtual machine ID or name Resource ID or name
A VM
ID of the VM
"vmhfy8gff8c67hasb0eez2k1pd"
IPv4 address
Whether IPv4 is enabled
IPv6 address
Location of the VM
"eu-central-h1"
Name of the VM
"my-vm-name"
Size of the underlying VM
State of the VM
Storage size in GiB
Unix user of the VM Unix user of the VM
List of firewalls
Show child attributes
Description of the firewall
List of firewall rules
Show child attributes
CIDR of the firewall rule
ID of the firewall rule
"fraz0q3vbrpa7pkg7zbmah9csn"
Port range of the firewall rule
Description of the firewall rule
ID of the firewall
"fwfg7td83em22qfw9pq5xyfqb7"
Location of the the firewall
Name of the firewall
Private IPv4 address
Private IPv6 address
Subnet of the VM
GPU configuration