NSX-T Data Center REST API

Get the realized state associated with provided logical switch id (Deprecated)

Returns current state of the logical switch configuration and details of only
out-of-sync transport nodes.
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/{lswitch-id}/state
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

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: