Skip to main content
PATCH
/
v1
/
projects
/
{projectId}
/
cluster-machines
/
{id}
Update a cluster machine
curl --request PATCH \
  --url https://rest.compute.cudo.org/v1/projects/{projectId}/cluster-machines/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "powerState": "MACHINE_POWER_STATE_UNSPECIFIED",
  "priceHr": {
    "value": "<string>"
  },
  "state": "STATE_UNSPECIFIED",
  "volumeIds": [
    "<string>"
  ]
}'
{
  "architecture": "<string>",
  "cpuCores": 123,
  "cpuModel": "<string>",
  "cpuSpeedMhz": 123,
  "createBy": "<string>",
  "createTime": "2023-11-07T05:31:56Z",
  "dataCenterId": "<string>",
  "diskSizeGib": 123,
  "disks": 123,
  "externalIpAddress": "<string>",
  "gpuModelId": "<string>",
  "gpus": 123,
  "id": "<string>",
  "internalIpAddress": "<string>",
  "machineTypeId": "<string>",
  "memoryGib": 123,
  "powerState": "MACHINE_POWER_STATE_UNSPECIFIED",
  "priceHr": {
    "value": "<string>"
  },
  "projectId": "<string>",
  "state": "STATE_UNSPECIFIED",
  "volumeIds": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required
id
string
required

Body

application/json

Update cluster machine params

powerState
enum<string>
default:MACHINE_POWER_STATE_UNSPECIFIED
Available options:
MACHINE_POWER_STATE_UNSPECIFIED,
ON,
OFF,
POWERING_ON,
POWERING_OFF,
REBOOTING
priceHr
object

A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.

state
enum<string>
default:STATE_UNSPECIFIED
Available options:
STATE_UNSPECIFIED,
CREATING,
ACTIVE,
DELETING,
FAILED
volumeIds
string[]

Response

A successful response.

architecture
string
cpuCores
integer
cpuModel
string
cpuSpeedMhz
integer
createBy
string
createTime
string<date-time>
dataCenterId
string
diskSizeGib
integer
disks
integer
externalIpAddress
string
gpuModelId
string
gpus
integer
id
string
internalIpAddress
string
machineTypeId
string
memoryGib
integer
powerState
enum<string>
default:MACHINE_POWER_STATE_UNSPECIFIED
Available options:
MACHINE_POWER_STATE_UNSPECIFIED,
ON,
OFF,
POWERING_ON,
POWERING_OFF,
REBOOTING
priceHr
object

A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.

projectId
string
state
enum<string>
default:STATE_UNSPECIFIED
Available options:
STATE_UNSPECIFIED,
CREATING,
ACTIVE,
DELETING,
FAILED
volumeIds
string[]