Query Catalog list

Returns the list of Catalogs accessible in the current workspace.

HTTP
POST $CLOUDSIGMA_API_BASE/catalog/list

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

Request body fields

Type

Required

Description

include_stats

boolean or null

No

Whether to load statistics, omitted or null, default true.

Set include_stats in the request body to false to skip statistical information.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "list": [
      {
        "id": 1,
        "name": "sales",
        "display_name": "sales",
        "description": "销售数据",
        "database_count": 1,
        "volume_count": 1,
        "file_count": 2,
        "table_count": 3,
        "created_at": "2026-08-18T10:00:00Z",
        "created_by": "user-001",
        "updated_at": "2026-08-18T10:00:00Z",
        "updated_by": "user-001",
        "reserved": false,
        "allowed_actions": [
          "catalog.read",
          "catalog.update"
        ]
      }
    ]
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.list

array of object

Catalog list. An empty array if there is no readable catalog.

data.list[].id

integer

Catalog ID。

data.list[].name

string

Catalog name.

data.list[].description

string

Catalog description.

data.list[].display_name

string

Catalog display name. Returned if there is a value.

data.list[].display_description

string

Catalog shows description. Returned if there is a value.

data.list[].database_count

integer

Number of subordinate databases.

data.list[].volume_count

integer

Number of subordinate volumes. Returned if there is a value.

data.list[].file_count

integer

Number of subordinate files. Returned if there is a value.

data.list[].table_count

integer

Number of subordinate tables. Returned if there is a value.

data.list[].created_at

string

Creation time. Returned if there is a value.

data.list[].created_by

string

Creator ID. Returned if there is a value.

data.list[].updated_at

string

Update time. Returned if there is a value.

data.list[].updated_by

string

Updater ID. Returned if there is a value.

data.list[].reserved

boolean

Whether to retain the Catalog.

data.list[].allowed_actions

array of string

Operations allowed by the current identity.

Error response

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

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on