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 '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 '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 'Accept: application/json'

Response

{
    "disks": [
        {
            "createTime": "string",
            "dataCenterId": "string",
            "diskState": "string",
            "diskType": "string",
            "id": "string",
            "privateImageId": "string",
            "projectId": "string",
            "publicImageId": "string",
            "sizeGib": "integer",
            "storageClass": "string",
            "vmId": "string"
        }
    ],
    "pageNumber": "integer",
    "pageSize": "integer",
    "totalCount": "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 '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 'Accept: application/json'

Response

{
    "disk": {
        "createTime": "string",
        "dataCenterId": "string",
        "diskState": "string",
        "diskType": "string",
        "id": "string",
        "privateImageId": "string",
        "projectId": "string",
        "publicImageId": "string",
        "sizeGib": "integer",
        "storageClass": "string",
        "vmId": "string"
    },
    "snapshots": [
        {
            "active": "boolean",
            "createTime": "string",
            "id": "string",
            "sizeGib": "integer"
        }
    ]
}

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 '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 '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 'Accept: application/json'

Response

{
    "snapshots": [
        {
            "active": "boolean",
            "createTime": "string",
            "id": "string",
            "sizeGib": "integer"
        }
    ]
}

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 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
    "snapshotId": "string",
    "vmId": "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 'Accept: application/json'