Disks
These are the endpoints for Disks. More information coming soon.
PATCH
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}/attachcurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disk/{id}/attach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
PUT
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}/detachcurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disk/{id}/detach' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
GET
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}/diskscurl '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
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}/diskscurl '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
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
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
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}/revertcurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/revert' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
GET
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}/snapshotscurl '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
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}/snapshotscurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/disks/{id}/snapshots' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
POST
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}/snapshotscurl '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"
}'