List calculation instances¶
Lists the computing instances in the current workspace that the caller has read permissions for.
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¶
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¶
{
"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 |
|---|---|---|
|
string |
success code. |
|
string |
Response information. |
|
array of object |
The data returned by this operation. |
|
string |
Calculate the instance ID for details and subsequent actions. |
|
string |
The workspace ID to which it belongs. |
|
string |
Compute instance name. |
|
string |
Example description. |
|
string |
Instance type. The values are |
|
string |
Selected compute specification ID. |
|
integer |
CPU configuration value. |
|
integer |
Configuration value in GiB of memory. |
|
integer |
GPU configuration values. |
|
integer |
CPU configuration value in millicores. |
|
integer |
Configuration value in MiB of memory. |
|
integer |
Number of GPUs. |
|
integer |
MiB of video memory for a single GPU. |
|
integer |
Number of GPU cores. |
|
integer |
Serverless instance is fixed to |
|
integer |
Maximum number of copies. |
|
integer |
The current number of running replicas. |
|
integer |
Target number of copies. |
|
string |
Go Worker image ID. |
|
string |
Python Worker image ID. |
|
array of object |
Worker image selection. |
|
string |
Worker type. |
|
string |
Resource type. |
|
string |
Image ID. |
|
string |
Run the platform. |
|
string |
Instance running platform. |
|
integer |
Automatic pause waiting time. |
|
string |
The scaling reason provided by the server. |
|
boolean |
Whether it is the default computing instance of the workspace. |
|
string |
Current life cycle status. The value is |
|
string |
Supplementary status information. |
|
string |
Creator ID. |
|
array of string |
The operations that the current identity can perform on this compute instance. Operation permissions should not be inferred when empty. |
|
string or null |
Last activation time. |
|
string or null |
Last active time. |
|
string |
Creation time. In RFC 3339 format. |
|
string |
Last updated. In RFC 3339 format. |
Error response¶
{
"code": "LIST_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. |