Virtual Machines
These are the endpoints for Virtual Machines. More information coming soon.
Count
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/count-vms' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"count": "integer"
}
List private VM images
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"images": [
{
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer"
}
],
"totalCount": "integer",
"pageNumber": "integer",
"pageSize": "integer"
}
Create private VM image
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
vmId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
description
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"image": {
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer"
}
}
Get private VM image
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"image": {
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer"
}
}
Delete private VM image
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Update private VM image
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
description
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Create virtual machine
Description for this endpoint is coming soon.
Body attributes
- Name
dataCenterId
- Type
- string
- Description
- Name
machineType
- Type
- string
- Description
- Name
vmId
- Type
- string
- Description
- Name
startScript
- Type
- string
- Description
- Name
sshKeySource
- Type
- string
- Description
- Name
customSshKeys
- Type
- array
- Description
- Name
password
- Type
- string
- Description
- Name
bootDisk
- Type
- object
- Description
- Name
bootDiskImageId
- Type
- string
- Description
- Name
vcpus
- Type
- integer
- Description
- Name
memoryGib
- Type
- integer
- Description
- Name
gpus
- Type
- integer
- Description
- Name
cpuModel
- Type
- string
- Description
- Name
gpuModel
- Type
- string
- Description
- Name
gpuModelId
- Type
- string
- Description
- Name
nics
- Type
- array
- Description
- Name
securityGroupIds
- Type
- array
- Description
- Name
storageDiskIds
- Type
- array
- Description
- Name
metadata
- Type
- object
- Description
- Name
topology
- Type
- object
- Description
- Name
validateOnly
- Type
- boolean
- Description
Path attributes
- Name
projectId
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vm' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"dataCenterId": "string",
"machineType": "string",
"vmId": "string",
"startScript": "string",
"sshKeySource": "string",
"customSshKeys": "array",
"password": "string",
"bootDisk": "object",
"bootDiskImageId": "string",
"vcpus": "integer",
"memoryGib": "integer",
"gpus": "integer",
"cpuModel": "string",
"gpuModel": "string",
"gpuModelId": "string",
"nics": "array",
"securityGroupIds": "array",
"storageDiskIds": "array",
"metadata": "object",
"topology": "object",
"validateOnly": "boolean"
}'
{
"id": "string",
"vm": {
"datacenterId": "string",
"machineType": "string",
"regionId": "string",
"regionName": "string",
"id": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"publicIpAddress": "string",
"memory": "integer",
"cpuModel": "string",
"vcpus": "integer",
"gpuModel": "string",
"gpuModelId": "string",
"gpuQuantity": "integer",
"bootDiskSizeGib": "integer",
"priceHr": "number",
"renewableEnergy": "boolean",
"imageId": "string",
"publicImageId": "string",
"publicImageName": "string",
"privateImageId": "string",
"imageName": "string",
"createBy": "string",
"nics": [
{
"networkId": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"networkAddress": "string",
"securityGroupIds": [
"string"
]
}
],
"rules": [
{
"id": "string",
"protocol": "string",
"ports": "string",
"ruleType": "string",
"ipRangeCidr": "string",
"icmpType": "string"
}
],
"securityGroupIds": [
"string"
],
"shortState": "string",
"bootDisk": {
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
},
"storageDisks": [
{
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
}
],
"metadata": "object",
"state": "string",
"createTime": "string"
}
}
Update VM metadata
Description for this endpoint is coming soon.
Body attributes
- Name
metadata
- Type
- object
- Description
- Name
merge
- Type
- boolean
- Description
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vm/{id}/metadata' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"metadata": "object",
"merge": "boolean"
}'
{
"metadata": "object"
}
Attach security group to VM
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
securityGroupId
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vm/{id}/security-group/attach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Attach security group to VM
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
securityGroupId
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vm/{id}/security-group/detach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
List
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
networkId
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"VMs": [
{
"datacenterId": "string",
"machineType": "string",
"regionId": "string",
"regionName": "string",
"id": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"publicIpAddress": "string",
"memory": "integer",
"cpuModel": "string",
"vcpus": "integer",
"gpuModel": "string",
"gpuModelId": "string",
"gpuQuantity": "integer",
"bootDiskSizeGib": "integer",
"priceHr": "number",
"renewableEnergy": "boolean",
"imageId": "string",
"publicImageId": "string",
"publicImageName": "string",
"privateImageId": "string",
"imageName": "string",
"createBy": "string",
"nics": [
{
"networkId": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"networkAddress": "string",
"securityGroupIds": [
"string"
]
}
],
"rules": [
{
"id": "string",
"protocol": "string",
"ports": "string",
"ruleType": "string",
"ipRangeCidr": "string",
"icmpType": "string"
}
],
"securityGroupIds": [
"string"
],
"shortState": "string",
"bootDisk": {
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
},
"storageDisks": [
{
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
}
],
"metadata": "object",
"state": "string",
"createTime": "string"
}
]
}
Get
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"VM": {
"datacenterId": "string",
"machineType": "string",
"regionId": "string",
"regionName": "string",
"id": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"publicIpAddress": "string",
"memory": "integer",
"cpuModel": "string",
"vcpus": "integer",
"gpuModel": "string",
"gpuModelId": "string",
"gpuQuantity": "integer",
"bootDiskSizeGib": "integer",
"priceHr": "number",
"renewableEnergy": "boolean",
"imageId": "string",
"publicImageId": "string",
"publicImageName": "string",
"privateImageId": "string",
"imageName": "string",
"createBy": "string",
"nics": [
{
"networkId": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"networkAddress": "string",
"securityGroupIds": [
"string"
]
}
],
"rules": [
{
"id": "string",
"protocol": "string",
"ports": "string",
"ruleType": "string",
"ipRangeCidr": "string",
"icmpType": "string"
}
],
"securityGroupIds": [
"string"
],
"shortState": "string",
"bootDisk": {
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
},
"storageDisks": [
{
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
}
],
"metadata": "object",
"state": "string",
"createTime": "string"
},
"vcpuPriceHr": {
"value": "string"
},
"totalVcpuPriceHr": {
"value": "string"
},
"memoryGibPriceHr": {
"value": "string"
},
"totalMemoryPriceHr": {
"value": "string"
},
"gpuPriceHr": {
"value": "string"
},
"totalGpuPriceHr": {
"value": "string"
},
"storageGibPriceHr": {
"value": "string"
},
"totalStoragePriceHr": {
"value": "string"
},
"ipv4PriceHr": {
"value": "string"
},
"totalPriceHr": {
"value": "string"
}
}
Connect via VNC
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
connectionId
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/connect' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"connectUrl": "string",
"token": "string"
}
List disks attached to VM
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/disks' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"disks": [
{
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
}
]
}
Resize a VM's disk
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
diskId
- Type
- string
- Description
- Name
sizeGib
- Type
- integer
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/disks' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Monitor
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/monitor' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"items": [
{
"cpu": "number",
"diskRdBytes": "integer",
"diskRdIops": "integer",
"diskWrBytes": "integer",
"diskWrIops": "integer",
"memory": "integer",
"netRx": "integer",
"netTx": "integer",
"timestamp": "string"
}
]
}
Reboot
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/reboot' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Resize vCPU and memory of VM
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
vcpus
- Type
- integer
- Description
- Name
memoryGib
- Type
- integer
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/resize' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"vm": {
"datacenterId": "string",
"machineType": "string",
"regionId": "string",
"regionName": "string",
"id": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"publicIpAddress": "string",
"memory": "integer",
"cpuModel": "string",
"vcpus": "integer",
"gpuModel": "string",
"gpuModelId": "string",
"gpuQuantity": "integer",
"bootDiskSizeGib": "integer",
"priceHr": "number",
"renewableEnergy": "boolean",
"imageId": "string",
"publicImageId": "string",
"publicImageName": "string",
"privateImageId": "string",
"imageName": "string",
"createBy": "string",
"nics": [
{
"networkId": "string",
"externalIpAddress": "string",
"internalIpAddress": "string",
"networkAddress": "string",
"securityGroupIds": [
"string"
]
}
],
"rules": [
{
"id": "string",
"protocol": "string",
"ports": "string",
"ruleType": "string",
"ipRangeCidr": "string",
"icmpType": "string"
}
],
"securityGroupIds": [
"string"
],
"shortState": "string",
"bootDisk": {
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
},
"storageDisks": [
{
"id": "string",
"projectId": "string",
"dataCenterId": "string",
"vmId": "string",
"sizeGib": "integer",
"storageClass": "string",
"diskType": "string",
"publicImageId": "string",
"privateImageId": "string",
"createTime": "string",
"diskState": "string"
}
],
"metadata": "object",
"state": "string",
"createTime": "string"
}
}
Start
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/start' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Stop
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/stop' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Terminate
Description for this endpoint is coming soon.
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/vms/{id}/terminate' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
List data centers
Description for this endpoint is coming soon.
Path attributes
- Name
regionId
- Type
- array
- Description
- Name
renewableEnergy
- Type
- boolean
- Description
curl 'https://rest.compute.cudo.org/v1/vms/data-centers' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"dataCenters": [
{
"id": "string",
"regionId": "string",
"supplierName": "string",
"renewableEnergy": "boolean",
"diskPoolPricing": [
{
"storageClass": "string",
"diskGibPriceHr": {
"value": "string"
},
"snapshotGibPriceHr": {
"value": "string"
}
}
],
"networkPricing": [
{
"size": "string",
"priceHr": {
"value": "string"
}
}
],
"ipv4PriceHr": {
"value": "string"
},
"ipv4Free": "integer"
}
]
}
List GPU models
Description for this endpoint is coming soon.
curl 'https://rest.compute.cudo.org/v1/vms/gpu-models' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"gpuModels": [
{
"id": "string",
"vendorName": "string",
"modelName": "string",
"memoryGib": "integer"
}
]
}
List machine types
Description for this endpoint is coming soon.
Path attributes
- Name
cpuModel
- Type
- string
- Description
- Name
gpu
- Type
- integer
- Description
- Name
gpuModel
- Type
- string
- Description
- Name
gpuModelId
- Type
- string
- Description
- Name
memoryGib
- Type
- integer
- Description
- Name
orderBy
- Type
- string
- Description
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
- Name
regionId
- Type
- string
- Description
- Name
storageGib
- Type
- integer
- Description
- Name
vcpu
- Type
- integer
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
publicIpv4
- Type
- boolean
- Description
curl 'https://rest.compute.cudo.org/v1/vms/machine-types' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"request": {
"cpuModel": "string",
"gpu": "integer",
"gpuModel": "string",
"gpuModelId": "string",
"memoryGib": "integer",
"orderBy": "string",
"pageNumber": "integer",
"pageSize": "integer",
"regionId": "string",
"storageGib": "integer",
"vcpu": "integer",
"dataCenterId": "string",
"publicIpv4": "boolean"
},
"maxVcpu": "integer",
"maxMemoryGib": "integer",
"maxGpu": "integer",
"countVmAvailable": "integer",
"cpuModels": [
{
"name": "string",
"minPriceHr": {
"value": "string"
},
"countVmAvailable": "integer"
}
],
"gpuModels": [
{
"id": "string",
"name": "string",
"minPriceHr": {
"value": "string"
},
"countVmAvailable": "integer",
"maxFree": "integer",
"totalFree": "integer"
}
],
"dataCenters": [
{
"id": "string",
"minPriceHr": {
"value": "string"
},
"countVmAvailable": "integer",
"renewableEnergy": "boolean"
}
],
"hostConfigs": [
{
"id": "string",
"cpuModel": "string",
"gpuModel": "string",
"gpuModelId": "string",
"dataCenterId": "string",
"vcpuPriceHr": {
"value": "string"
},
"totalVcpuPriceHr": {
"value": "string"
},
"memoryGibPriceHr": {
"value": "string"
},
"totalMemoryPriceHr": {
"value": "string"
},
"gpuPriceHr": {
"value": "string"
},
"totalGpuPriceHr": {
"value": "string"
},
"storageGibPriceHr": {
"value": "string"
},
"totalStoragePriceHr": {
"value": "string"
},
"totalPriceHr": {
"value": "string"
},
"countVmAvailable": "integer",
"machineType": "string",
"renewableEnergy": "boolean",
"ipv4PriceHr": {
"value": "string"
}
}
]
}
List machine types v2
Description for this endpoint is coming soon.
curl 'https://rest.compute.cudo.org/v1/vms/machine-types-2' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"machineTypes": [
{
"dataCenterId": "string",
"machineType": "string",
"cpuModel": "string",
"gpuModel": "string",
"gpuModelId": "string",
"minVcpuPerMemoryGib": "number",
"maxVcpuPerMemoryGib": "number",
"minVcpuPerGpu": "number",
"maxVcpuPerGpu": "number",
"vcpuPriceHr": {
"value": "string"
},
"memoryGibPriceHr": {
"value": "string"
},
"gpuPriceHr": {
"value": "string"
},
"minStorageGibPriceHr": {
"value": "string"
},
"ipv4PriceHr": {
"value": "string"
},
"renewableEnergy": "boolean",
"maxVcpuFree": "integer",
"totalVcpuFree": "integer",
"maxMemoryGibFree": "integer",
"totalMemoryGibFree": "integer",
"maxGpuFree": "integer",
"totalGpuFree": "integer",
"maxStorageGibFree": "integer",
"totalStorageGibFree": "integer",
"minVcpu": "number",
"minMemoryGib": "number"
}
]
}
List public VM images
Description for this endpoint is coming soon.
curl 'https://rest.compute.cudo.org/v1/vms/public-images' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
{
"images": [
{
"id": "string",
"name": "string",
"description": "string",
"displayName": "string",
"platform": "string",
"sizeGib": "integer",
"installedPackages": [
{
"name": "string",
"description": "string",
"version": "string"
}
]
}
]
}