This article describes NSX APIs that can be used to monitor Edge availability and Tier-0 status, and samples of their outputs.
VMware NSX
Tier-0 and Edge State API
API used: GET /api/v1/infra/tier-0s/state
This API reports the realization state of the Tier-0 gateway and its associated Edge TransportNodes.
tier0_state:
state: in_sync
details:
sub_system_type: TransportNode state: in_sync
sub_system_type: TransportNode state: in_sync
tier0_status:
per_node_status:
high_availability_status: STANDBY
high_availability_status: ACTIVE
tier0_state:
state: unknown
details:
sub_system_type: TransportNode state: in_sync
sub_system_type: TransportNode state: unknown
failure_message: Unable to collect status for one transport node
tier0_status:
per_node_status:
high_availability_status: ACTIVE
high_availability_status: UNKNOWN
tier0_state:
state: unknown
details:
sub_system_type: TransportNode state: unknown
sub_system_type: TransportNode state: unknown
failure_message: Unable to collect status for all transport nodes
tier0_status:
per_node_status:
high_availability_status: ACTIVE
high_availability_status: STANDBY
BGP Neighbor Status API
API used: GET /policy/api/v1/infra/tier-0s/locale-services/default/bgp/neighbors/status
This API reports BGP neighbor status for Edge nodes reachable by NSX Manager.
results:
connection_state: ESTABLISHED
connection_state: ESTABLISHED
result_count: 2
results:
connection_state: ESTABLISHED
result_count: 1
results: []
result_count: 0
NOTE:
While these APIs can contribute to monitoring the status of NSX Edge nodes and Tier-0 gateways, they are not a substitute or replacement for full system monitoring provided by Aria Operations for Networks.