删除备份
Delete the specified backup of a cluster. Note that this API only applies to dedicated clusters.
DELETE
/v2/clusters/{CLUSTER_ID}/backups/{BACKUP_ID}该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
export BASE_URL="https://api.cloud.zilliz.com.cn"
参数
Authorizationstringheaderrequired
认证令牌,应为具备适当权限的 API 密钥。
示例值:Bearer {{TOKEN}}
CLUSTER_IDstringpathrequired
The ID of the cluster whose backup is to be deleted.
示例值:inxx-xxxxxxxxxxxxxxx
BACKUP_IDstringpathrequired
The ID of the backup to be deleted.
示例值:Dedicated-01_backup3
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
export BACKUP_ID="Dedicated-01_backup3"
curl --request DELETE \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/${BACKUP_ID}" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json"
响应200 - application/json
codeinteger
Response code.
dataobject
Response payload which is the information about the deleted backup.
backupIdstring
The ID of the backup that has been deleted.
示例值:backupx_xxxxxxxxxxxxxxx
backupNamestring
The name of the backup that has been deleted.
Returns an error message.
codeinteger
响应码。
messagestring
错误描述。
{
"code": 0,
"data": {
"backupId": "backup1_1e9d15560e4f240",
"backupName": "Dedicated-01_backup1"
}
}