恢复集群备份
Restore cluster backup to a new dedicated cluster of the same CU type in the same cloud region. Note that this API only applies to dedicated clusters.
该 API 的 Base URL 格式如下:
https://api.cloud.zilliz.com.cn
export BASE_URL="https://api.cloud.zilliz.com.cn"
认证令牌,应为具备适当权限的 API 密钥。
The ID of the cluster whose backup is in concern.
The ID of the backup in concern.
The ID of the project to which the restored cluster belongs.
The name of the restored cluster.
The CU size allocated to the restored cluster.
The status of the collections in the restored cluster.
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
export BACKUP_ID="Dedicated-01_backup3"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/${BACKUP_ID}/restoreCluster" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"projectId": "proj-xxxxxxxxxxxxxxxxxxxx",
"clusterName": "Dedicated-12",
"cuSize": 2,
"collectionStatus": "KEEP"
}'
Response code.
Response payload which is the information of the restored cluster.
The ID of the restored cluster.
The username used to access the restored cluster.
The password used to access the restored cluster. This is shown only once. You are advised to note down the password and save it in a secure place.
The ID of the cluster restoration job created upon this request.
Returns an error message.
响应码。
错误描述。
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"username": "db_admin",
"password": "xxxxxxxxx",
"jobId": "job-xxxxxxxxxxxxxx"
}
}