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 |
|---|---|---|---|
|
integer |
Yes |
Table ID. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"path": "catalog-a/database-a/orders"
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
string |
The full path of the table in the catalog hierarchy. |
Error response¶
JSON
{
"code": "ErrParamInvalid",
"msg": "请求参数无效"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |
Last updated on