List workspace-creation tasks

View workspace creation tasks submitted by the current identity that have not yet been completed or have been completed recently.

HTTP
GET $CLOUDSIGMA_API_BASE/workspaces/creations

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 personal access token.

Request parameters

Replace $CLOUDSIGMA_API_KEY with the actual value.

Shell
curl "$CLOUDSIGMA_API_BASE/workspaces/creations" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY"

X-API-Key in the request header passes in the personal access token.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "creations": [
      {
        "id": "creation_01",
        "name": "分析工作区",
        "status": "succeeded",
        "workspace_id": "ws_01",
        "created_at": "2026-08-28T09:00:00Z",
        "updated_at": "2026-08-28T09:01:00Z"
      }
    ]
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.creations

array of object

The creation task of the current identity.

data.creations[].id

string

Create a task ID.

data.creations[].name

string

The name of the workspace to be created.

data.creations[].status

string

Task status: pending, running, succeeded, failed or cleanup_pending.

data.creations[].workspace_id

string

Created workspace ID. Omit if it has not been successfully created.

data.creations[].error_code

string

Error code on failure. Omitted if not failed.

data.creations[].created_at

string

Task creation time.

data.creations[].updated_at

string

Task update time.

data.creations[].error_reason

string

Description of failure reason. Omitted if not set.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "服务器内部错误",
  "data": null
}

Field

Type

Description

code

string

error code.

msg

string

Readable error message.

data

null

The error response is null.

Last updated on