Skip to main content

Get Global Cluster Replication Lag (V2)

Returns replication lag from the primary cluster to each secondary cluster.

GET/v2/globalClusters/{globalClusterId}/replicationLag
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}}
globalClusterIdstringpathrequired

ID of the Global Cluster.

Example Value: glo-xxxxxxxxxxxxxxx
bash
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"
Responses

Returns replication lag information.

A replication lag result for the global cluster.

globalClusterIdstring

Global Cluster ID.

Example Value: glo-xxxxxxxxxxxxxxx
primaryClusterIdstring

Primary cluster ID.

Example Value: in01-primary
primaryRegionIdstring

Primary cluster region ID.

Example Value: aws-us-west-2
lagsarray

Replication lag from the primary cluster to each secondary cluster.

[]lagsobject

Replication lag from the primary cluster to a secondary cluster.

secondaryClusterIdstring

Secondary cluster ID.

Example Value: in01-secondary-eu
secondaryRegionIdstring

Secondary cluster region ID.

Example Value: aws-eu-west-1
lagMsinteger

Replication lag in milliseconds.

Example Value: 120
dataobject

Response payload; the type varies by endpoint.

globalClusterIdstring

ID of the global cluster.

primaryClusterIdstring

ID of the primary cluster.

primaryRegionIdstring

ID of the region where the primary cluster resides.

lagsarray

Replication lag of each secondary cluster.

[]lagsobject

Replication lag of a single secondary cluster.

secondaryClusterIdstring

ID of the secondary cluster.

secondaryRegionIdstring

ID of the region where the secondary cluster resides.

lagMsinteger<int32>

Replication lag in milliseconds.

Returns an error message.

codeinteger<int32>

Response code.

Example Value: 400
messagestring

Error message.

Example Value: Invalid request parameters.
Successjson
{
"globalClusterId": "glo-xxxxxxxxxxxxxxx",
"primaryClusterId": "in01-primary",
"primaryRegionId": "aws-us-west-2",
"lags": [
{
"secondaryClusterId": "in01-secondary-eu",
"secondaryRegionId": "aws-eu-west-1",
"lagMs": 120
}
]
}