Create a virtual machine
curl --request POST \
--url https://rest.compute.cudo.org/v1/projects/{projectId}/vm \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bootDiskImageId": "<string>",
"dataCenterId": "<string>",
"gpus": 123,
"machineType": "<string>",
"memoryGib": 123,
"vcpus": 123,
"vmId": "<string>",
"bootDiskSizeGib": 123,
"commitmentTerm": "COMMITMENT_TERM_NONE",
"customSshKeys": [
"<string>"
],
"expireTime": "2023-11-07T05:31:56Z",
"metadata": {},
"nics": [
{
"assignPublicIp": true,
"networkId": "<string>",
"securityGroupIds": [
"<string>"
]
}
],
"password": "<string>",
"securityGroupIds": [
"<string>"
],
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"startScript": "<string>",
"storageDiskIds": [
"<string>"
],
"topology": {
"cores": 123,
"sockets": 123,
"threads": 123
},
"ttl": "<string>",
"validateOnly": true
}
'import requests
url = "https://rest.compute.cudo.org/v1/projects/{projectId}/vm"
payload = {
"bootDiskImageId": "<string>",
"dataCenterId": "<string>",
"gpus": 123,
"machineType": "<string>",
"memoryGib": 123,
"vcpus": 123,
"vmId": "<string>",
"bootDiskSizeGib": 123,
"commitmentTerm": "COMMITMENT_TERM_NONE",
"customSshKeys": ["<string>"],
"expireTime": "2023-11-07T05:31:56Z",
"metadata": {},
"nics": [
{
"assignPublicIp": True,
"networkId": "<string>",
"securityGroupIds": ["<string>"]
}
],
"password": "<string>",
"securityGroupIds": ["<string>"],
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"startScript": "<string>",
"storageDiskIds": ["<string>"],
"topology": {
"cores": 123,
"sockets": 123,
"threads": 123
},
"ttl": "<string>",
"validateOnly": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bootDiskImageId: '<string>',
dataCenterId: '<string>',
gpus: 123,
machineType: '<string>',
memoryGib: 123,
vcpus: 123,
vmId: '<string>',
bootDiskSizeGib: 123,
commitmentTerm: 'COMMITMENT_TERM_NONE',
customSshKeys: ['<string>'],
expireTime: '2023-11-07T05:31:56Z',
metadata: {},
nics: [{assignPublicIp: true, networkId: '<string>', securityGroupIds: ['<string>']}],
password: '<string>',
securityGroupIds: ['<string>'],
sshKeySource: 'SSH_KEY_SOURCE_UNKNOWN',
startScript: '<string>',
storageDiskIds: ['<string>'],
topology: {cores: 123, sockets: 123, threads: 123},
ttl: '<string>',
validateOnly: true
})
};
fetch('https://rest.compute.cudo.org/v1/projects/{projectId}/vm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.compute.cudo.org/v1/projects/{projectId}/vm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bootDiskImageId' => '<string>',
'dataCenterId' => '<string>',
'gpus' => 123,
'machineType' => '<string>',
'memoryGib' => 123,
'vcpus' => 123,
'vmId' => '<string>',
'bootDiskSizeGib' => 123,
'commitmentTerm' => 'COMMITMENT_TERM_NONE',
'customSshKeys' => [
'<string>'
],
'expireTime' => '2023-11-07T05:31:56Z',
'metadata' => [
],
'nics' => [
[
'assignPublicIp' => true,
'networkId' => '<string>',
'securityGroupIds' => [
'<string>'
]
]
],
'password' => '<string>',
'securityGroupIds' => [
'<string>'
],
'sshKeySource' => 'SSH_KEY_SOURCE_UNKNOWN',
'startScript' => '<string>',
'storageDiskIds' => [
'<string>'
],
'topology' => [
'cores' => 123,
'sockets' => 123,
'threads' => 123
],
'ttl' => '<string>',
'validateOnly' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest.compute.cudo.org/v1/projects/{projectId}/vm"
payload := strings.NewReader("{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rest.compute.cudo.org/v1/projects/{projectId}/vm")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.compute.cudo.org/v1/projects/{projectId}/vm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"vm": {
"commitmentTerm": "COMMITMENT_TERM_NONE",
"projectId": "<string>",
"authorizedSshKeys": "<string>",
"bootDisk": {
"dataCenterId": "<string>",
"id": "<string>",
"projectId": "<string>",
"sizeGib": 123,
"createTime": "2023-11-07T05:31:56Z",
"diskState": "UNKNOWN",
"diskType": "DISK_TYPE_UNKNOWN",
"privateImageId": "<string>",
"publicImageId": "<string>",
"vmId": "<string>"
},
"bootDiskSizeGib": 123,
"commitmentEndTime": "2023-11-07T05:31:56Z",
"cpuModel": "<string>",
"createBy": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"datacenterId": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"externalIpAddress": "<string>",
"gpuModel": "<string>",
"gpuModelId": "<string>",
"gpuQuantity": 123,
"id": "<string>",
"imageId": "<string>",
"imageName": "<string>",
"internalIpAddress": "<string>",
"machineType": "<string>",
"memory": 123,
"metadata": {},
"nics": [
{
"externalIpAddress": "<string>",
"internalIpAddress": "<string>",
"networkAddress": "<string>",
"networkId": "<string>",
"securityGroupIds": [
"<string>"
]
}
],
"price": {
"gpuPriceHr": {
"value": "<string>"
},
"ipv4AddressPriceHr": {
"value": "<string>"
},
"memoryGibPriceHr": {
"value": "<string>"
},
"storageGibPriceHr": {
"value": "<string>"
},
"totalGpuPriceHr": {
"value": "<string>"
},
"totalMemoryPriceHr": {
"value": "<string>"
},
"totalPriceHr": {
"value": "<string>"
},
"totalStoragePriceHr": {
"value": "<string>"
},
"totalVcpuPriceHr": {
"value": "<string>"
},
"vcpuPriceHr": {
"value": "<string>"
}
},
"privateImageId": "<string>",
"publicImageId": "<string>",
"publicImageName": "<string>",
"publicIpAddress": "<string>",
"renewableEnergy": true,
"rules": [
{
"icmpType": "<string>",
"id": "<string>",
"ipRangeCidr": "<string>",
"ports": "<string>",
"protocol": "PROTOCOL_UNKNOWN",
"ruleType": "RULE_TYPE_UNKNOWN"
}
],
"securityGroupIds": [
"<string>"
],
"securityGroups": [
{
"dataCenterId": "<string>",
"id": "<string>",
"description": "<string>",
"projectId": "<string>",
"rules": [
{
"icmpType": "<string>",
"id": "<string>",
"ipRangeCidr": "<string>",
"ports": "<string>",
"protocol": "PROTOCOL_UNKNOWN",
"ruleType": "RULE_TYPE_UNKNOWN"
}
]
}
],
"shortState": "<string>",
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"state": "CLONING",
"storageDisks": [
{
"dataCenterId": "<string>",
"id": "<string>",
"projectId": "<string>",
"sizeGib": 123,
"createTime": "2023-11-07T05:31:56Z",
"diskState": "UNKNOWN",
"diskType": "DISK_TYPE_UNKNOWN",
"privateImageId": "<string>",
"publicImageId": "<string>",
"vmId": "<string>"
}
],
"vcpus": 123
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Virtual machines
Create a virtual machine
Creates and starts a new virtual machine.
POST
/
v1
/
projects
/
{projectId}
/
vm
Create a virtual machine
curl --request POST \
--url https://rest.compute.cudo.org/v1/projects/{projectId}/vm \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"bootDiskImageId": "<string>",
"dataCenterId": "<string>",
"gpus": 123,
"machineType": "<string>",
"memoryGib": 123,
"vcpus": 123,
"vmId": "<string>",
"bootDiskSizeGib": 123,
"commitmentTerm": "COMMITMENT_TERM_NONE",
"customSshKeys": [
"<string>"
],
"expireTime": "2023-11-07T05:31:56Z",
"metadata": {},
"nics": [
{
"assignPublicIp": true,
"networkId": "<string>",
"securityGroupIds": [
"<string>"
]
}
],
"password": "<string>",
"securityGroupIds": [
"<string>"
],
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"startScript": "<string>",
"storageDiskIds": [
"<string>"
],
"topology": {
"cores": 123,
"sockets": 123,
"threads": 123
},
"ttl": "<string>",
"validateOnly": true
}
'import requests
url = "https://rest.compute.cudo.org/v1/projects/{projectId}/vm"
payload = {
"bootDiskImageId": "<string>",
"dataCenterId": "<string>",
"gpus": 123,
"machineType": "<string>",
"memoryGib": 123,
"vcpus": 123,
"vmId": "<string>",
"bootDiskSizeGib": 123,
"commitmentTerm": "COMMITMENT_TERM_NONE",
"customSshKeys": ["<string>"],
"expireTime": "2023-11-07T05:31:56Z",
"metadata": {},
"nics": [
{
"assignPublicIp": True,
"networkId": "<string>",
"securityGroupIds": ["<string>"]
}
],
"password": "<string>",
"securityGroupIds": ["<string>"],
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"startScript": "<string>",
"storageDiskIds": ["<string>"],
"topology": {
"cores": 123,
"sockets": 123,
"threads": 123
},
"ttl": "<string>",
"validateOnly": True
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
bootDiskImageId: '<string>',
dataCenterId: '<string>',
gpus: 123,
machineType: '<string>',
memoryGib: 123,
vcpus: 123,
vmId: '<string>',
bootDiskSizeGib: 123,
commitmentTerm: 'COMMITMENT_TERM_NONE',
customSshKeys: ['<string>'],
expireTime: '2023-11-07T05:31:56Z',
metadata: {},
nics: [{assignPublicIp: true, networkId: '<string>', securityGroupIds: ['<string>']}],
password: '<string>',
securityGroupIds: ['<string>'],
sshKeySource: 'SSH_KEY_SOURCE_UNKNOWN',
startScript: '<string>',
storageDiskIds: ['<string>'],
topology: {cores: 123, sockets: 123, threads: 123},
ttl: '<string>',
validateOnly: true
})
};
fetch('https://rest.compute.cudo.org/v1/projects/{projectId}/vm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rest.compute.cudo.org/v1/projects/{projectId}/vm",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'bootDiskImageId' => '<string>',
'dataCenterId' => '<string>',
'gpus' => 123,
'machineType' => '<string>',
'memoryGib' => 123,
'vcpus' => 123,
'vmId' => '<string>',
'bootDiskSizeGib' => 123,
'commitmentTerm' => 'COMMITMENT_TERM_NONE',
'customSshKeys' => [
'<string>'
],
'expireTime' => '2023-11-07T05:31:56Z',
'metadata' => [
],
'nics' => [
[
'assignPublicIp' => true,
'networkId' => '<string>',
'securityGroupIds' => [
'<string>'
]
]
],
'password' => '<string>',
'securityGroupIds' => [
'<string>'
],
'sshKeySource' => 'SSH_KEY_SOURCE_UNKNOWN',
'startScript' => '<string>',
'storageDiskIds' => [
'<string>'
],
'topology' => [
'cores' => 123,
'sockets' => 123,
'threads' => 123
],
'ttl' => '<string>',
'validateOnly' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rest.compute.cudo.org/v1/projects/{projectId}/vm"
payload := strings.NewReader("{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rest.compute.cudo.org/v1/projects/{projectId}/vm")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rest.compute.cudo.org/v1/projects/{projectId}/vm")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bootDiskImageId\": \"<string>\",\n \"dataCenterId\": \"<string>\",\n \"gpus\": 123,\n \"machineType\": \"<string>\",\n \"memoryGib\": 123,\n \"vcpus\": 123,\n \"vmId\": \"<string>\",\n \"bootDiskSizeGib\": 123,\n \"commitmentTerm\": \"COMMITMENT_TERM_NONE\",\n \"customSshKeys\": [\n \"<string>\"\n ],\n \"expireTime\": \"2023-11-07T05:31:56Z\",\n \"metadata\": {},\n \"nics\": [\n {\n \"assignPublicIp\": true,\n \"networkId\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ]\n }\n ],\n \"password\": \"<string>\",\n \"securityGroupIds\": [\n \"<string>\"\n ],\n \"sshKeySource\": \"SSH_KEY_SOURCE_UNKNOWN\",\n \"startScript\": \"<string>\",\n \"storageDiskIds\": [\n \"<string>\"\n ],\n \"topology\": {\n \"cores\": 123,\n \"sockets\": 123,\n \"threads\": 123\n },\n \"ttl\": \"<string>\",\n \"validateOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"vm": {
"commitmentTerm": "COMMITMENT_TERM_NONE",
"projectId": "<string>",
"authorizedSshKeys": "<string>",
"bootDisk": {
"dataCenterId": "<string>",
"id": "<string>",
"projectId": "<string>",
"sizeGib": 123,
"createTime": "2023-11-07T05:31:56Z",
"diskState": "UNKNOWN",
"diskType": "DISK_TYPE_UNKNOWN",
"privateImageId": "<string>",
"publicImageId": "<string>",
"vmId": "<string>"
},
"bootDiskSizeGib": 123,
"commitmentEndTime": "2023-11-07T05:31:56Z",
"cpuModel": "<string>",
"createBy": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"datacenterId": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"externalIpAddress": "<string>",
"gpuModel": "<string>",
"gpuModelId": "<string>",
"gpuQuantity": 123,
"id": "<string>",
"imageId": "<string>",
"imageName": "<string>",
"internalIpAddress": "<string>",
"machineType": "<string>",
"memory": 123,
"metadata": {},
"nics": [
{
"externalIpAddress": "<string>",
"internalIpAddress": "<string>",
"networkAddress": "<string>",
"networkId": "<string>",
"securityGroupIds": [
"<string>"
]
}
],
"price": {
"gpuPriceHr": {
"value": "<string>"
},
"ipv4AddressPriceHr": {
"value": "<string>"
},
"memoryGibPriceHr": {
"value": "<string>"
},
"storageGibPriceHr": {
"value": "<string>"
},
"totalGpuPriceHr": {
"value": "<string>"
},
"totalMemoryPriceHr": {
"value": "<string>"
},
"totalPriceHr": {
"value": "<string>"
},
"totalStoragePriceHr": {
"value": "<string>"
},
"totalVcpuPriceHr": {
"value": "<string>"
},
"vcpuPriceHr": {
"value": "<string>"
}
},
"privateImageId": "<string>",
"publicImageId": "<string>",
"publicImageName": "<string>",
"publicIpAddress": "<string>",
"renewableEnergy": true,
"rules": [
{
"icmpType": "<string>",
"id": "<string>",
"ipRangeCidr": "<string>",
"ports": "<string>",
"protocol": "PROTOCOL_UNKNOWN",
"ruleType": "RULE_TYPE_UNKNOWN"
}
],
"securityGroupIds": [
"<string>"
],
"securityGroups": [
{
"dataCenterId": "<string>",
"id": "<string>",
"description": "<string>",
"projectId": "<string>",
"rules": [
{
"icmpType": "<string>",
"id": "<string>",
"ipRangeCidr": "<string>",
"ports": "<string>",
"protocol": "PROTOCOL_UNKNOWN",
"ruleType": "RULE_TYPE_UNKNOWN"
}
]
}
],
"shortState": "<string>",
"sshKeySource": "SSH_KEY_SOURCE_UNKNOWN",
"state": "CLONING",
"storageDisks": [
{
"dataCenterId": "<string>",
"id": "<string>",
"projectId": "<string>",
"sizeGib": 123,
"createTime": "2023-11-07T05:31:56Z",
"diskState": "UNKNOWN",
"diskType": "DISK_TYPE_UNKNOWN",
"privateImageId": "<string>",
"publicImageId": "<string>",
"vmId": "<string>"
}
],
"vcpus": 123
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Authorizations
API key authentication. API keys should be passed using the format Bearer API_KEY.
Path Parameters
Body
application/json
DEPRECATED: use bootDiskSizeGib on CreateVMBody instead
Show child attributes
Show child attributes
Available options:
COMMITMENT_TERM_NONE, COMMITMENT_TERM_1_MONTH, COMMITMENT_TERM_3_MONTHS, COMMITMENT_TERM_6_MONTHS, COMMITMENT_TERM_12_MONTHS, COMMITMENT_TERM_24_MONTHS, COMMITMENT_TERM_36_MONTHS, COMMITMENT_TERM_60_MONTHS Show child attributes
Show child attributes
Show child attributes
Show child attributes
Available options:
SSH_KEY_SOURCE_UNKNOWN, SSH_KEY_SOURCE_PROJECT, SSH_KEY_SOURCE_USER, SSH_KEY_SOURCE_NONE Show child attributes
Show child attributes
⌘I