NSX-T Data Center REST API

List logical switches by realized state (Deprecated)

Returns a list of logical switches states that have realized state as provided
as query parameter.
Deprecated: This api is now deprecated. Please use new api - policy/api/v1/infra/realized-state/realized-entities?intent_path={{intent-path}}

Request:

Method:
GET
URI Path(s):
/api/v1/logical-switches/state
Request Headers:
n/a
Query Parameters:
LogicalSwitchStateParameters+
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-switches/state?status=IN_PROGRESS

Successful Response:

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

Example Response:

{ "state" : "in_progress", "logical_switch_id": "cc5ff938-6f09-4841-8f0f-294e86415472", "details": [ { "state" : "in_progress", "sub_system_id" : "366048ba-89d9-435e-ac2e-2c7cf6ed0f33", "sub_system_type" : "TransportNode" } ] }

Required Permissions:

read

Feature:

switching_switches

Additional Errors: