Query Catalog list¶
Returns the list of catalogs accessible in the current workspace.
POST $CLOUDSIGMA_API_BASE/catalog/list
Before you call this API¶
Configure the regional API endpoint and authentication, and select the target workspace.
Request¶
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/list" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Successful response¶
On success, 200 and the Catalog list that can be read by the current identity are returned.
{
"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"]
}
]
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object[] |
Catalog list; empty array when 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 Display description; return 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 reserve the Catalog. |
|
string[] |
Operations allowed by the current identity. |
In this document, [] after a type means an array; for example, object[] is an array of objects. In field paths, [] means each item in an array; for example, data.list[].id is the id field of each item in data.list.
Error response¶
{
"code": "ErrServer",
"msg": "服务器内部错误",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
Missing or invalid access credentials. |
Check the regional endpoint, API key, and workspace ID. |
|
|
The server failed to read the Catalog list. |
Try again later. |
Follow-up operations¶
Use data.list[].id Query Catalog details.