Query the Catalog system tree¶
Query the read-only navigation tree of the system database.
POST $CLOUDSIGMA_API_BASE/catalog/system/tree
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 workspace ID that can access the target workspace.
Request body¶
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/system/tree" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"include_table_leaves": false
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
boolean |
No |
Whether to include table leaf nodes in the tree. If omitted or |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"tree": [
{
"type": "catalog",
"name": "system",
"node_list": []
}
]
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
array of object |
System library navigation tree. |
|
string |
Node ID. |
|
string |
Node type: |
|
string |
Node name. |
|
string |
Node description. |
|
boolean |
Whether it is a reserved node. |
|
array of object |
Child nodes have the same fields as the parent node. Recursive nesting can continue. |
|
array of string |
Operations allowed by the current identity on this node. |
Error response¶
{
"code": "ErrServer",
"msg": "Internal Server Error"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |