Management Plane API > Networking > Logical Switching > Logical Switches

Get the realized state associated with provided logical switch id

Returns current state of the logical switch configuration and details of only
out-of-sync transport nodes.

Request:

Method:
GET
URI Path(s):
/api/v1/logical-switches/<lswitch-id>/state
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<nsx-mgr>/api/v1/logical-switches/cc5ff938-6f09-4841-8f0f-294e86415472/state

Successful Response:

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

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: