Get Management Node HA Status

GET/zstack/v1/management-nodes/zsha2/status

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/management-nodes/zsha2/status

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListquerySystem tags 4.10.20
userTags (Optional)ListqueryUser tags 4.10.20

API Response

Response Example

{
  "inventory": {
    "vip": "172.26.30.7",
    "uiHttpPath": "https://172.26.30.7:443",
    "nodes": [
      {
        "ip": "172.26.21.212",
        "gatewayIp": "172.26.0.1",
        "ownsVip": true,
        "peerReachable": true,
        "gatewayReachable": true,
        "vipReachable": true,
        "keepalivedStatus": "active",
        "haMonitorStatus": "active",
        "databaseStatus": "mysqld is alive",
        "uiStatus": "running",
        "managementsNodeStatus": "running",
        "slaveIoRunning": true,
        "slaveSqlRunning": true
      },
      {
        "ip": "172.26.30.106",
        "gatewayIp": "172.26.0.1",
        "ownsVip": false,
        "peerReachable": true,
        "gatewayReachable": true,
        "vipReachable": true,
        "keepalivedStatus": "active",
        "haMonitorStatus": "active",
        "databaseStatus": "mysqld is alive",
        "uiStatus": "running",
        "managementsNodeStatus": "running",
        "slaveIoRunning": true,
        "slaveSqlRunning": true
      }
    ]
  }
}
NameTypeDescriptionStarting Version
successbooleanWhether the retrieval succeeded4.10.20
inventoryZSha2StatusViewFor details, see inventory4.10.20
errorErrorCodeFor details, see error4.10.20

inventory

NameTypeDescriptionStarting Version
vipStringThe VIP address4.10.20
uiHttpPathStringThe UI HTTP path4.10.20
nodesListFor details, see nodes4.10.20

nodes

NameTypeDescriptionStarting Version
ipStringThe Management Node IP4.10.20
gatewayIpStringThe gateway IP4.10.20
ownsVipbooleanWhether the node owns the VIP4.10.20
peerReachablebooleanWhether the peer Management Node is reachable4.10.20
gatewayReachablebooleanWhether the gateway is reachable4.10.20
vipReachablebooleanWhether the VIP is reachable4.10.20
keepalivedStatusStringThe keepalived service status, typically 'alive'4.10.20
haMonitorStatusStringThe HA monitor service status, typically 'alive'4.10.20
databaseStatusStringThe database status, typically 'mysqld is alive'4.10.20
uiStatusStringThe UI status, typically 'running'4.10.20
managementsNodeStatusStringThe Management Node status, typically 'running'4.10.20
slaveIoRunningbooleanWhether the Slave IO is running4.10.20
slaveSqlRunningbooleanWhether the Slave SQL is running4.10.20
errorErrorCodeThe error information from the last operation4.10.20

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001.0.6
descriptionStringA brief description of the error.0.6
detailsStringThe detailed error information.0.6
elaborationStringA reserved field. Default is null.0.6
opaqueLinkedHashMapA reserved field. Default is null.0.6
causeErrorCodeThe root error. The source error that caused the current error. If there is no root error, this field is null.0.6

SDK Examples

Java SDK

GetZSha2StatusAction action = new GetZSha2StatusAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetZSha2StatusAction.Result res = action.call();

Python SDK

action = GetZSha2StatusAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()