Query database list¶
Returns a list of readable databases under the specified Catalog.
POST $CLOUDSIGMA_API_BASE/catalog/database/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. First query the catalog list to obtain the target catalog ID. Prepare the personal access token, target workspace ID, and Catalog ID that can access the target workspace.
Request body¶
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/database/list" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"id": '"$CATALOG_ID"'
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Catalog ID。 |
|
boolean |
No |
Whether to load statistics. Omitted or null Defaults to true. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"list": [
{
"id": 2,
"name": "orders",
"description": "订单库",
"volume_count": 1,
"table_count": 3,
"created_at": "2026-08-18T10:00:00Z",
"updated_at": "2026-08-18T10:00:00Z",
"created_by": "user-001",
"updated_by": "user-001",
"reserved": false,
"allowed_actions": [
"database.read"
]
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
Database list. An empty array when there is no readable database. |
|
integer |
Database ID. |
|
string |
Database name. |
|
string |
Database description. |
|
string |
Database display name. Returned if there is a value. |
|
string |
Database display instructions. Returned if there is a value. |
|
integer |
Number of subordinate volumes. |
|
integer |
Number of subordinate tables. |
|
string |
Creation time. |
|
string |
Update time. |
|
string |
Creator ID. |
|
string |
Updater ID. |
|
boolean |
Whether to retain the database. |
|
boolean |
Whether it is a published database. |
|
boolean |
Whether the database is subscribed. |
|
array of string |
Operations allowed by the current identity. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "请求参数无效"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |