List Worker images

Lists the Worker images that can be selected when creating or updating a compute instance.

HTTP
GET $CLOUDSIGMA_API_BASE/compute-resources/worker-images

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare a personal access token and target workspace ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/compute-resources/worker-images?worker_type=python-worker" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Field

Type

Required

Description

worker_type

string

No

Filter by Worker type.

type

string

No

Filter by mirror key.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": [
    {
      "id": "python-worker:v1",
      "worker_type": "python-worker",
      "image_key": "python-worker",
      "type": "python-worker",
      "platform": "linux/amd64",
      "is_default": true,
      "status": "active",
      "tag": "",
      "repository": "",
      "description": "",
      "registered_at": "2026-10-14T00:00:00Z",
      "updated_at": "2026-10-14T00:00:00Z"
    }
  ]
}

Field

Type

Description

code

string

success code.

msg

string

Response information.

data

array of object

The data returned by this operation.

data[].id

string

Image ID, passed in as image_id when creating or updating.

data[].worker_type

string

Passed in as worker_type when creating or updating.

data[].image_key

string

The canonical key of the image. Corresponds to type.

data[].type

string

Mirror key. Corresponds to image_key.

data[].tag

string

Mirror tag.

data[].repository

string

Mirror warehouse.

data[].platform

string

Passed in as platform when creating or updating.

data[].description

string

Mirror description.

data[].is_default

boolean

Whether it is the default image for this Worker type.

data[].status

string

The current status of the image. The values ​​are active, inactive

data[].registered_at

string

Registration time. In RFC 3339 format.

data[].updated_at

string

Last updated. In RFC 3339 format.

Error response

JSON
{
  "code": "LIST_IMAGES_FAILED",
  "msg": "服务端错误",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Error description.

data

null

Empty on error.

Common HTTP errors

HTTP status

Error code

Common cause

Recommended action

400

INVALID_PARAMS

Invalid request field, workspace, or operation precondition.

Fix the request parameters and submit again.

401

Unauthorized

Missing or invalid authentication credentials.

Check the credential type, expiration, and authentication header.

500

LIST_IMAGES_FAILED

Internal processing failed; write operations may have been partially applied.

Retain request and trace details, and verify the current state before retrying.

Last updated on