NSX-T Data Center REST API

Get a Policy Edge Cluster State info under an Enforcement Point

Returns information about the current state of the edge cluster.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/sites/{site-id}/enforcement-points/{enforcementpoint-id}/edge-clusters/{edge-cluster-id}/state
Request Headers:
n/a
Query Parameters:
RealizationStateQueryParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/sites/default/enforcement-points/default/edge-clusters/my-edge-cluster-id/state

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
PolicyEdgeClusterState+

Example Response:

Example 1: ---------- # Below Example for policy api created edge cluster GET https://<policy-mgr>/policy/api/v1/infra/sites/default/enforcement-points/default/edge-clusters/my-edge-cluster-id/state { "edge_cluster_name": "my-edge-cluster-id", "state": "unknown", "details": [ { "edge_transport_node_path": "/infra/sites/default/enforcement-points/default/edge-transport-nodes/my-edge-tn-id", "policy_edge_node_path": "/infra/sites/default/enforcement-points/nsxt-ep/edge-clusters/ec/edge-nodes/en-1", "state": "in_sync" }, { "edge_transport_node_path": "/infra/sites/default/enforcement-points/default/edge-transport-nodes/7c0733a6-8e40-4c22-9199-dda7f4813ae1", "policy_edge_node_path": "/infra/sites/default/enforcement-points/nsxt-ep/edge-clusters/ec/edge-nodes/en", "state": "unknown" } ], "failure_message": "Unable to collect status for '2' transport nodes." } Example 2: ---------- # Below Example for mp api created edge cluster GET https://<policy-mgr>/policy/api/v1/infra/sites/default/enforcement-points/default/edge-clusters/8511f1ff-240c-4ca6-b070-e18ef8e69653/state { "edge_cluster_name": "EDGECLUSTER1", "details": [ { "policy_edge_node_path": "/infra/sites/default/enforcement-points/default/edge-clusters/8511f1ff-240c-4ca6-b070-e18ef8e69653/edge-nodes/0", "edge_transport_node_path": "/infra/sites/default/enforcement-points/default/edge-transport-nodes/17365d30-0782-11ef-b9db-020017197055", "state": "in_sync" }, { "policy_edge_node_path": "/infra/sites/default/enforcement-points/default/edge-clusters/8511f1ff-240c-4ca6-b070-e18ef8e69653/edge-nodes/1", "edge_transport_node_path": "/infra/sites/default/enforcement-points/default/edge-transport-nodes/1a1a61cc-0782-11ef-a114-020017606fb0", "state": "in_sync" } ], "state": "in_sync" }

Required Permissions:

read

Feature:

infra_admin

Additional Errors: