Skip to main content

Get Backup Policy (V2)

List the backup policy of the specified cluster in detail. Note that this API only applies to dedicated clusters.

GET/v2/clusters/{CLUSTER_ID}/backups/policy
Connection Endpoint

The base URL for this API is in the following format:

https://api.cloud.zilliz.com

📘Notes

The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.

shell
export BASE_URL="https://api.cloud.zilliz.com"
Parameters
Authorizationstringheaderrequired

The authentication token should be an API key with appropriate privileges.

Example Value: Bearer {{TOKEN}}
CLUSTER_IDstringpathrequired

The ID of the cluster whose backup is in concern.

Example Value: inxx-xxxxxxxxxxxxxxx
bash
export TOKEN="YOUR_API_KEY"
export CLUSTER_ID="inxx-xxxxxxxxxxxxxxx"

curl --request GET \
--url "${BASE_URL}/v2/clusters/${CLUSTER_ID}/backups/policy" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
Responses

response

A successful response body returned for the backup policy.

codeinteger<int32>

Response code.

dataobject

Response payload which is the backup policy of the specified cluster.

clusterIdstring

The ID of the cluster whose backup policy is in concern.

statusstring

The status of the backup policy.

startTimestring

The start time is a two hour duration for the backup policy to execute in the format of HH:mm-HH:mm UTC time. When the backup policy is disabled, the value is null.

Example Value: 02:00-04:00
frequencystring

The week days on which the backup is performed. The value is a comma-separated list of numbers from 1 to 7, where 1 represents Monday and 7 represents Sunday. When the backup policy is disabled, the value is null.

Example Value: 1,2,5
retentionDaysinteger<int32>

The number of days to retain the backup. When the backup policy is disabled, the value is 0.

Example Value: 7
crossRegionPoliciesarray

Cross-region backup policies of the cluster.

[]crossRegionPoliciesobject

Cross-region backup policy data of an instance.

regionIdstring

Region ID of the cross-region backup policy.

retentionDaysinteger<int32>

Number of days cross-region backups are retained.

regionstring

Region name of the cross-region backup policy.

Returns an error message.

codeinteger

Response code.

messagestring

Error message.

Successjson
{
"code": 0,
"data": {
"clusterId": "inxx-xxxxxxxxxxxxxxx",
"status": "ENABLED",
"startTime": "02:00-04:00",
"frequency": "1,2,3,5",
"retentionDays": 7,
"crossRegionCopies": [
{
"regionId": "aws-us-west-2",
"retentionDays": 7,
"region": "us-west-2"
},
{
"regionId": "aws-us-east-1",
"retentionDays": 7,
"region": "us-east-1"
}
]
}
}