Query the Catalog system tree

Query the read-only navigation tree of the system database.

HTTP
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

Shell
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

include_table_leaves

boolean

No

Whether to include table leaf nodes in the tree. If omitted or null, the default is true.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "tree": [
      {
        "type": "catalog",
        "name": "system",
        "node_list": []
      }
    ]
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.tree

array of object

System library navigation tree.

data.tree[].id

string

Node ID.

data.tree[].type

string

Node type: catalog, database, volume or table.

data.tree[].name

string

Node name.

data.tree[].description

string

Node description.

data.tree[].reserved

boolean

Whether it is a reserved node.

data.tree[].node_list

array of object

Child nodes have the same fields as the parent node. Recursive nesting can continue.

data.tree[].allowed_actions

array of string

Operations allowed by the current identity on this node.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "Internal Server Error"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on