Query Catalog reference

Returns the current results of the Catalog reference query.

HTTP
POST $CLOUDSIGMA_API_BASE/catalog/ref_list

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/ref_list" \
  -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": {
    "list": []
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.list

array of object

It is currently fixed to an empty array and cannot be used to determine whether a reference exists.

Error response

JSON
{
  "code": "ErrServer",
  "msg": "服务器内部错误"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on