Get Global Cluster Replication Lag (V2)
Returns replication lag from the primary cluster to each secondary 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.
export TOKEN="YOUR_API_KEY"
export globalClusterId="glo-xxxxxxxxxxxxxxx"
curl --request GET \
--url "${BASE_URL}/v2/globalClusters/${globalClusterId}/replicationLag" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
Returns replication lag information.
A replication lag result for the global cluster.
Global Cluster ID.
Primary cluster ID.
Primary cluster region ID.
Replication lag from the primary cluster to each secondary cluster.
Replication lag from the primary cluster to a secondary cluster.
Secondary cluster ID.
Secondary cluster region ID.
Replication lag in milliseconds.
Response payload; the type varies by endpoint.
ID of the global cluster.
ID of the primary cluster.
ID of the region where the primary cluster resides.
Replication lag of each secondary cluster.
Replication lag of a single secondary cluster.
ID of the secondary cluster.
ID of the region where the secondary cluster resides.
Replication lag in milliseconds.
Returns an error message.
Response code.
Error message.
{
"globalClusterId": "glo-xxxxxxxxxxxxxxx",
"primaryClusterId": "in01-primary",
"primaryRegionId": "aws-us-west-2",
"lags": [
{
"secondaryClusterId": "in01-secondary-eu",
"secondaryRegionId": "aws-eu-west-1",
"lagMs": 120
}
]
}