List calculation instances

Lists the computing instances in the current workspace that the caller has read permissions for.

HTTP
GET $CLOUDSIGMA_API_BASE/compute-resources

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" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

This request does not contain path parameters, query parameters, or request body.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": [
    {
      "id": "cr-001",
      "name": "data-processing",
      "spec_id": "task-standard-small",
      "max_replicas": 1,
      "current_replicas": 0,
      "status": "IDLE",
      "allowed_actions": [
        "compute_resource.update",
        "compute_resource.operate"
      ],
      "workspace_id": "ws_01",
      "description": "",
      "kind": "task",
      "cpu": 0,
      "memory_gib": 0,
      "gpu": 0,
      "cpu_milli": 0,
      "memory_mib": 0,
      "gpu_count": 0,
      "gpu_memory_mib": 0,
      "gpu_cores": 0,
      "min_replicas": 0,
      "desired_replicas": 0,
      "go_worker_image_id": "",
      "python_worker_image_id": "",
      "platform": "",
      "auto_suspend_minutes": 0,
      "scale_reason": "",
      "is_default": false,
      "status_message": "",
      "created_by": "user_01",
      "created_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

Calculate the instance ID for details and subsequent actions.

data[].workspace_id

string

The workspace ID to which it belongs.

data[].name

string

Compute instance name.

data[].description

string

Example description.

data[].kind

string

Instance type. The values are task, query

data[].spec_id

string

Selected compute specification ID.

data[].cpu

integer

CPU configuration value.

data[].memory_gib

integer

Configuration value in GiB of memory.

data[].gpu

integer

GPU configuration values.

data[].cpu_milli

integer

CPU configuration value in millicores.

data[].memory_mib

integer

Configuration value in MiB of memory.

data[].gpu_count

integer

Number of GPUs.

data[].gpu_memory_mib

integer

MiB of video memory for a single GPU.

data[].gpu_cores

integer

Number of GPU cores.

data[].min_replicas

integer

Serverless instance is fixed to 0

data[].max_replicas

integer

Maximum number of copies.

data[].current_replicas

integer

The current number of running replicas.

data[].desired_replicas

integer

Target number of copies.

data[].go_worker_image_id

string

Go Worker image ID.

data[].python_worker_image_id

string

Python Worker image ID.

data[].worker_images

array of object

Worker image selection.

data[].worker_images[].worker_type

string

Worker type.

data[].worker_images[].kind

string

Resource type.

data[].worker_images[].image_id

string

Image ID.

data[].worker_images[].platform

string

Run the platform.

data[].platform

string

Instance running platform.

data[].auto_suspend_minutes

integer

Automatic pause waiting time.

data[].scale_reason

string

The scaling reason provided by the server.

data[].is_default

boolean

Whether it is the default computing instance of the workspace.

data[].status

string

Current life cycle status. The value is IAM_CREATE_PENDING, IDLE, DEPLOYING, SCALING, ACTIVE , DRAINING, SUSPENDED, TERMINATING, ERROR, DELETED

data[].status_message

string

Supplementary status information.

data[].created_by

string

Creator ID.

data[].allowed_actions

array of string

The operations that the current identity can perform on this compute instance. Operation permissions should not be inferred when empty.

data[].last_activation_at

string or null

Last activation time.

data[].last_active_at

string or null

Last active time.

data[].created_at

string

Creation time. In RFC 3339 format.

data[].updated_at

string

Last updated. In RFC 3339 format.

Error response

JSON
{
  "code": "LIST_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_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