Create backup (V2)
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
The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.
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. This is mandatory when the backupType is set to COLLECTION. Note that all collections listed in this field must belong to the same database.
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
The list of cloud regions to which the backup will be copied. Note that Zilliz Cloud will create a backup in the same region as the cluster by default, so you only need to specify the regions where you want to copy the backup to. Each entry in the list results in one copy of the permanent backup being created in the specified region.
Information about the target cloud region to which the backup will be copied.
The ID of the target cloud region to which the backup will be copied.
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": "CLUSTER"
}'
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": [
{
"dbName": "my_database",
"collectionNames": [
"collection_1",
"collection_2"
]
}
]
}'
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": [
{
"dbName": "my_database",
"collectionNames": [
"collection_1",
"collection_2"
]
}
],
"crossRegionCopies": [
{
"regionId": "aws-us-west-2"
},
{
"regionId": "aws-us-east-1"
}
]
}'
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"
}
}