Show high availability status
Purpose
Shows the status of the high availability (HA) service.URI
Use the Eclipse Amlen REST API GET method with the following Eclipse Amlen service URI:
http://<admin-endpoint-IP:Port>/ima/v1/service/status/HighAvailability
Usage NotesĀ®
- Capitalization must be used as shown.
- The status of the HA service is also returned as part of the data that is returned from the Eclipse Amlen REST API GET method with the following URI:
http://<admin-endpoint-IP:Port>/ima/v1/service/status
Related REST Administration APIs
Example
Shows the status of the HA service:curl -X GET http://127.0.0.1:9089/ima/v1/service/status/HighAvailability
An example response to the GET method:
{
"Version":"v1",
"HighAvailability": {
"Status": "Active",
"Enabled": true,
"Group": "MyHAGroup",
"NewRole": "PRIMARY",
"OldRole": "PRIMARY",
"ActiveNodes": 2,
"SyncNodes": 2,
"PrimaryLastTime": "2016-04-21T19:30:05Z",
"PctSyncCompletion": -1,
"ReasonCode": 0,
"RemoteServerName": "ServerB.mycompany.com"
}
}
{
"Version":"v1",
"HighAvailability": {
"Status": "Inactive",
"Enabled": false
}
}