Images
API reference for Images on CUDO Compute.
Reference
GET
List private VM images
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
Request
GET
/v1/projects/{projectId}/images
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"images": [
{
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer",
"platform": "string",
"state": "string"
}
],
"totalCount": "integer",
"pageNumber": "integer",
"pageSize": "integer"
}
POST
Create private VM image
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
vmId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
description
- Type
- string
- Description
Request
POST
/v1/projects/{projectId}/images
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"image": {
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer",
"platform": "string",
"state": "string"
}
}
GET
Get private VM image
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
Request
GET
/v1/projects/{projectId}/images/{id}
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"image": {
"projectId": "string",
"id": "string",
"dataCenterId": "string",
"description": "string",
"sizeGib": "integer",
"platform": "string",
"state": "string"
}
}
DELETE
Delete private VM image
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
Request
DELETE
/v1/projects/{projectId}/images/{id}
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
POST
Update private VM image
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
description
- Type
- string
- Description
Request
POST
/v1/projects/{projectId}/images/{id}
curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/images/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'