Query Catalog list¶
Returns the list of Catalogs accessible in the current workspace.
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¶
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 |
|---|---|---|---|
|
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¶
{
"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 |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Catalog list. An empty array if there is no readable catalog. |
|
integer |
Catalog ID。 |
|
string |
Catalog name. |
|
string |
Catalog description. |
|
string |
Catalog display name. Returned if there is a value. |
|
string |
Catalog shows description. Returned if there is a value. |
|
integer |
Number of subordinate databases. |
|
integer |
Number of subordinate volumes. Returned if there is a value. |
|
integer |
Number of subordinate files. Returned if there is a value. |
|
integer |
Number of subordinate tables. Returned if there is a value. |
|
string |
Creation time. Returned if there is a value. |
|
string |
Creator ID. Returned if there is a value. |
|
string |
Update time. Returned if there is a value. |
|
string |
Updater ID. Returned if there is a value. |
|
boolean |
Whether to retain the Catalog. |
|
array of string |
Operations allowed by the current identity. |
Error response¶
{
"code": "ErrServer",
"msg": "服务器内部错误"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |