Query Catalog details¶
Query the details of a Catalog by ID.
POST $CLOUDSIGMA_API_BASE/catalog/info
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/info" \
-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。 |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"catalog": {
"id": 1,
"name": "sales",
"display_name": "sales",
"description": "销售数据",
"display_description": "销售数据"
}
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
integer |
Catalog ID。 |
|
string |
Catalog original name. |
|
string |
Catalog description. |
|
string |
Catalog display name. Returned if there is a value. |
|
string |
Catalog shows description. Returned if there is a value. |
Error response¶
{
"code": "ErrObjectNotFound",
"msg": "Catalog 不存在"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |