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>",
"bootDisk": {
"sizeGib": 123
},
"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
}
'{
"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
}
}Creates and starts a new 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>",
"bootDisk": {
"sizeGib": 123
},
"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
}
'{
"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
}
}API key authentication. API keys should be passed using the format Bearer API_KEY.
DEPRECATED: use bootDiskSizeGib on CreateVMBody instead
Show child attributes
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
SSH_KEY_SOURCE_UNKNOWN, SSH_KEY_SOURCE_PROJECT, SSH_KEY_SOURCE_USER, SSH_KEY_SOURCE_NONE Show child attributes