List Worker images¶
Lists the Worker images that can be selected when creating or updating a compute instance.
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¶
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 |
|---|---|---|---|
|
string |
No |
Filter by Worker type. |
|
string |
No |
Filter by mirror key. |
Successful response¶
{
"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 |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
array of object |
The data returned by this operation. |
|
string |
Image ID, passed in as |
|
string |
Passed in as |
|
string |
The canonical key of the image. Corresponds to |
|
string |
Mirror key. Corresponds to |
|
string |
Mirror tag. |
|
string |
Mirror warehouse. |
|
string |
Passed in as |
|
string |
Mirror description. |
|
boolean |
Whether it is the default image for this Worker type. |
|
string |
The current status of the image. The values are |
|
string |
Registration time. In RFC 3339 format. |
|
string |
Last updated. In RFC 3339 format. |
Error response¶
{
"code": "LIST_IMAGES_FAILED",
"msg": "服务端错误",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
Empty on error. |
Common HTTP errors¶
HTTP status |
Error code |
Common cause |
Recommended action |
|---|---|---|---|
400 |
|
Invalid request field, workspace, or operation precondition. |
Fix the request parameters and submit again. |
401 |
|
Missing or invalid authentication credentials. |
Check the credential type, expiration, and authentication header. |
500 |
|
Internal processing failed; write operations may have been partially applied. |
Retain request and trace details, and verify the current state before retrying. |