Images

API reference for Images on CUDO Compute.

Reference
GET
/v1/projects/{projectId}/images

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
/v1/projects/{projectId}/images

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
/v1/projects/{projectId}/images/{id}

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
/v1/projects/{projectId}/images/{id}

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
/v1/projects/{projectId}/images/{id}

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'