Disks

These are the endpoints for Disks. More information coming soon.

PATCH
/v1/projects/{projectId}/disk/{id}/attach

Attach storage disk to VM

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
  • Name
    vmId
    Type
    string
    Description
Request
PATCH
/v1/projects/{projectId}/disk/{id}/attach
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disk/{id}/attach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'

PUT
/v1/projects/{projectId}/disk/{id}/detach

Detach storage disk from VM

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
Request
PUT
/v1/projects/{projectId}/disk/{id}/detach
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disk/{id}/detach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'

GET
/v1/projects/{projectId}/disks

List disks

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    pageNumber
    Type
    integer
    Description
  • Name
    pageSize
    Type
    integer
    Description
  • Name
    dataCenterId
    Type
    string
    Description
Request
GET
/v1/projects/{projectId}/disks
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
  "disks": [
    {
      "id": "string",
      "projectId": "string",
      "dataCenterId": "string",
      "vmId": "string",
      "sizeGib": "integer",
      "storageClass": "string",
      "diskType": "string",
      "publicImageId": "string",
      "privateImageId": "string",
      "createTime": "string",
      "diskState": "string"
    }
  ],
  "totalCount": "integer",
  "pageNumber": "integer",
  "pageSize": "integer"
}

POST
/v1/projects/{projectId}/disks

Create storage disk

Description for this endpoint is coming soon.

Body attributes

  • Name
    dataCenterId
    Type
    string
    Description
  • Name
    disk
    Type
    object
    Description

Path attributes

  • Name
    projectId
    Type
    string
    Description
Request
POST
/v1/projects/{projectId}/disks
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
    "dataCenterId": "string",
    "disk": "object"
}'

GET
/v1/projects/{projectId}/disks/{id}

List disks

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
Request
GET
/v1/projects/{projectId}/disks/{id}
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
  "disk": {
    "id": "string",
    "projectId": "string",
    "dataCenterId": "string",
    "vmId": "string",
    "sizeGib": "integer",
    "storageClass": "string",
    "diskType": "string",
    "publicImageId": "string",
    "privateImageId": "string",
    "createTime": "string",
    "diskState": "string"
  },
  "snapshots": [
    {
      "id": "string",
      "active": "boolean",
      "sizeGib": "integer",
      "createTime": "string"
    }
  ]
}

DELETE
/v1/projects/{projectId}/disks/{id}

Delete storage disk

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
Request
DELETE
/v1/projects/{projectId}/disks/{id}
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'

POST
/v1/projects/{projectId}/disks/{id}/revert

Revert Disk to Snapshot

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
  • Name
    snapshotId
    Type
    string
    Description
  • Name
    vmId
    Type
    string
    Description
Request
POST
/v1/projects/{projectId}/disks/{id}/revert
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/revert' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'

GET
/v1/projects/{projectId}/disks/{id}/snapshots

List Disk Snapshots

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
Request
GET
/v1/projects/{projectId}/disks/{id}/snapshots
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/snapshots' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
  "snapshots": [
    {
      "id": "string",
      "active": "boolean",
      "sizeGib": "integer",
      "createTime": "string"
    }
  ]
}

DELETE
/v1/projects/{projectId}/disks/{id}/snapshots

Delete Disk Snapshots

Description for this endpoint is coming soon.

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
  • Name
    snapshotId
    Type
    string
    Description
  • Name
    vmId
    Type
    string
    Description
Request
DELETE
/v1/projects/{projectId}/disks/{id}/snapshots
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/snapshots' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'

POST
/v1/projects/{projectId}/disks/{id}/snapshots

Create Disk Snapshot

Description for this endpoint is coming soon.

Body attributes

  • Name
    snapshotId
    Type
    string
    Description
  • Name
    vmId
    Type
    string
    Description

Path attributes

  • Name
    projectId
    Type
    string
    Description
  • Name
    id
    Type
    string
    Description
Request
POST
/v1/projects/{projectId}/disks/{id}/snapshots
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/snapshots' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
    "snapshotId": "string",
    "vmId": "string"
}'