Create backup
Back up the specified cluster or collection. Note that this API only applies to dedicated clusters.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
The ID of the cluster that needs to be backed up.
The type of the resources to be backed up.
The collections that need to be backed up.
The collection information.
The name of the database containing the collections listed in the collectionNames
field.
The names of the collections to be backed up.
A collection name
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/create" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Content-Type: application/json" \
-d '{
"backupType": "COLLECTION",
"dbCollections": [
{
"collectionNames": [
"medium_articles"
]
}
]
}'
Response code
The ID of the backup that has been created.
The name of the backup that has been created.
The ID of the asynchronous job that has created this backup.
Returns an error message.
Response code.
Error message.
{
"code": 0,
"data": {
"backupId": "backupx_xxxxxxxxxxxxxxx",
"backupName": "Dedicated_01",
"jobId": "job-xxxxxxxxxxxxxxxxxxxxxx"
}
}