Get Logical Port State

Get Logical Port State

Returns transport node id for a specified logical port. Also returns information about all address bindings of the specified logical port. This includes address bindings discovered via various snooping methods like ARP snooping, DHCP snooping etc. and addressing bindings that are realized based on user configuration.

Request
URI
GET
https://nsxmanager.your.domain/api/v1/logical-ports/{lport-id}/state
COPY
Path Parameters
string
lport-id
Required

lport-id


Authentication
This operation uses the following authentication methods.
Responses
200

Success

Returns LogicalPortState of type(s) application/json
{
    "transport_node_ids": [
        "string"
    ],
    "discovered_bindings": [
        {
            "source": "string",
            "binding": {
                "vlan": 0,
                "ip_address": "string",
                "mac_address": "string"
            },
            "binding_timestamp": 0
        }
    ],
    "id": "string",
    "realized_bindings": [
        {
            "source": "string",
            "binding": {
                "vlan": 0,
                "ip_address": "string",
                "mac_address": "string"
            },
            "binding_timestamp": 0
        }
    ]
}
array of string
transport_node_ids
Optional

Identifiers of the transport node where the port is located

discovered_bindings
Optional

Logical port bindings discovered automatically

string
id
Required

Id of the logical port

realized_bindings
Optional

Realized logical port bindings


400
Returns BadRequest of type(s) application/json
Operation doesn't return any data structure

403
Returns Forbidden of type(s) application/json
Operation doesn't return any data structure

404
Returns NotFound of type(s) application/json
Operation doesn't return any data structure

412
Returns PreconditionFailed of type(s) application/json
Operation doesn't return any data structure

500
Operation doesn't return any data structure

503
Returns ServiceUnavailable of type(s) application/json
Operation doesn't return any data structure