Query table full path

The full path of the query table in the catalog hierarchy.

HTTP
POST $CLOUDSIGMA_API_BASE/catalog/table/full_path

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 object in the database to obtain the table ID. Prepare the personal access token, target workspace ID, and table ID that can access the target workspace.

Request body

Shell
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/table/full_path" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "id": '"$TABLE_ID"'
  }'

Field

Type

Required

Description

id

integer

Yes

Table ID.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "path": "catalog-a/database-a/orders"
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.path

string

The full path of the table in the catalog hierarchy.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "请求参数无效"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on