Query volume reference¶
Returns the current results of the volume reference query.
HTTP
POST $CLOUDSIGMA_API_BASE/catalog/volume/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 object in the database to obtain the target volume ID. Prepare the personal access token, target workspace ID, and volume ID that can access the target workspace.
Request body¶
Shell
curl -X POST "$CLOUDSIGMA_API_BASE/catalog/volume/ref_list" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID" \
-H 'Content-Type: application/json' \
-d '{
"id": '"$VOLUME_ID"'
}'
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
Volume ID. |
Successful response¶
JSON
{
"code": "OK",
"msg": "OK",
"data": {
"list": []
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
array |
It is currently fixed to an empty array and cannot be used to determine whether a reference exists. |
Error response¶
JSON
{
"code": "ErrParamInvalid",
"msg": "id 无效"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |
Last updated on