Failover Global Cluster (V2)
Force-promotes a specified secondary cluster as the new primary cluster.
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.
ID of the Global Cluster.
ID of the secondary cluster to promote as the new primary cluster.
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request POST \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/failover" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json" \
-d '{
"newPrimaryClusterId": "in01-secondary"
}'
Returns the failover job.
One possible success response payload for the failover operation.
Global Cluster ID.
Previous primary cluster ID.
New primary cluster ID.
Job ID for the asynchronous operation.
Response payload; the type varies by endpoint.
ID of the global cluster.
ID of the previous primary cluster.
ID of the new primary cluster.
ID of the asynchronous job tracking the promotion.
Returns an error message.
Response code.
Error message.
{
"globalClusterId": "glo-xxxxxxxxxxxxxxx",
"oldPrimaryClusterId": "in01-primary",
"newPrimaryClusterId": "in01-secondary",
"jobId": "job-xxxxxxxxxxxxxxx"
}