Policy > Networking > Connectivity > Segments > Statistics

Get infra segments by configuration state

Returns all infra segments with configuration state on the enforcement
point specified in the request

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/segments/state
/policy/api/v1/global-infra/segments/state
Request Headers:
n/a
Query Parameters:
SegmentStateRequestParameters+
Request Body:
n/a

Example Request:

https://{{nsx-mgr}}/policy/api/v1/infra/segments/state?configuration_state=success&enforcement_point_path=/infra/sites/default/enforcement-points/default

Successful Response:

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

Example Response:

{ "results": [ { "segment_path": "/infra/segments/test-infra-seg", "state": "success", "details": [] }, { "segment_path": "/infra/segments/md-proxy-seg1", "state": "success", "details": [] }, { "segment_path": "/infra/segments/test-t0-dl", "state": "success", "details": [] }, { "segment_path": "/infra/segments/t0-ext-seg", "state": "success", "details": [] }, { "segment_path": "/infra/segments/TIER0_DOWN_LINK_SWITCH", "state": "success", "details": [] } ], "result_count": 5 }

Required Permissions:

read

Feature:

policy_statistics

Additional Errors: