Query the full path of the volume

Gets the full path of the volume in the catalog hierarchy.

HTTP
POST $CLOUDSIGMA_API_BASE/catalog/volume/full_path

Before you call this API

Configure the regional API endpoint and authentication, and select the target workspace.

First query the object in the database to obtain the target volume ID.

Set the operation-specific values used in the request:

  • $VOLUME_ID: The volume ID of the path to be queried.

Request

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

Request body

Parameter

Type

Required

Description

id

integer

Yes

Volume ID.

Successful response

On success, returns 200 and the hierarchical path to the volume.

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "path": "sales/catalog_a/db_a/sales_files"
  }
}

The response fields are as follows.

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.path

string

The full path of the volume in the Catalog hierarchy.

Error response

JSON
{
  "code": "ErrParamInvalid",
  "msg": "id 无效",
  "data": null
}

Common HTTP errors

HTTP status code

error code

Common causes

Recommended actions

400

ErrParamInvalid

id is missing or in an invalid format.

Pass in a valid volume ID.

403

ErrForbidden

The current identity does not have read permission for the volume.

Use credentials with read access, or contact your administrator for authorization.

500

ErrServer

The service cannot resolve the volume path.

Record the request time and error message and try again; if it continues to fail, contact support.

Follow-up operations

When modifications are needed Update database. When returning the list Query file products.

Last updated on