Query Catalog details

Query the details of a Catalog by ID.

HTTP
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

Shell
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

id

integer

Yes

Catalog ID。

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "catalog": {
      "id": 1,
      "name": "sales",
      "display_name": "sales",
      "description": "销售数据",
      "display_description": "销售数据"
    }
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.catalog.id

integer

Catalog ID。

data.catalog.name

string

Catalog original name.

data.catalog.description

string

Catalog description.

data.catalog.display_name

string

Catalog display name. Returned if there is a value.

data.catalog.display_description

string

Catalog shows description. Returned if there is a value.

Error response

JSON
{
  "code": "ErrObjectNotFound",
  "msg": "Catalog 不存在"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on