Retrieves information regarding the status of replication in Address Manager through the API.
API method:
GET
/v1/getReplicationInfo
Output / Response: Returns a JSON string containing the hostname, status of replication, latency, and IP address of the Primary server including all standby servers. Replication cluster information is also returned.
The following values represent the different replication
statuses that can be returned in replicationRole
:
- 0: Standalone
- 1: Primary Server
- 2: Standby Server
- 3: Removed Standby server