NSX-T Data Center REST API
Associated URIs:
API Description | API Path |
---|---|
List All Logical PortsReturns information about all configured logical switch ports. Logical switch ports connect to VM virtual network interface cards (NICs). Each logical port is associated with one logical switch. This api is now deprecated. Please use new api - /infra/segments/<segment-id>/ports |
GET /api/v1/logical-ports
(Deprecated)
|
Create a Logical PortCreates a new logical switch port. The required parameters are the associated logical_switch_id and admin_state (UP or DOWN). Optional parameters are the attachment and switching_profile_ids. If you don't specify switching_profile_ids, default switching profiles are assigned to the port. If you don't specify an attachment, the switch port remains empty. To configure an attachment, you must specify an id, and optionally you can specify an attachment_type (VIF or LOGICALROUTER). The attachment_type is VIF by default. This api is now deprecated. Please use new api - PUT /infra/segments/<segment-id>/ports/<port-id> |
POST /api/v1/logical-ports
(Deprecated)
|
Delete a Logical PortDeletes the specified logical switch port. By default, if logical port has attachments, or it is added to any NSGroup, the deletion will be failed. Option detach could be used for deleting logical port forcibly. This api is now deprecated. Please use new api - DELETE /infra/segments/<segment-id>/ports/<port-id> |
DELETE /api/v1/logical-ports/<lport-id>
(Deprecated)
|
Get Information About a Logical PortReturns information about a specified logical port. in impactor-ufo branch. Please use corresponding policy API /infra/segments/<segment-id>/ports/<lport-id> |
GET /api/v1/logical-ports/<lport-id>
(Deprecated)
|
Update a Logical PortModifies an existing logical switch port. Parameters that can be modified include attachment_type (LOGICALROUTER, VIF), admin_state (UP or DOWN), attachment id and switching_profile_ids. You cannot modify the logical_switch_id. In other words, you cannot move an existing port from one switch to another switch. This api is now deprecated. Please use new api - /infra/segments/<segment-id>/ports/<port-id> |
PUT /api/v1/logical-ports/<lport-id>
(Deprecated)
|
Get MAC table of a logical port with a given port id (lport-id)Returns MAC table of a specified logical port. If the target transport node id is not provided, the NSX manager will ask the controller for the transport node where the logical port is located. The query parameter "source=cached" is not supported. MAC table retrieval is not supported on logical ports that are attached to a logical router. |
GET /api/v1/logical-ports/<lport-id>/mac-table
|
Get MAC table of a logical port with a given port id (lport-id)Returns MAC table in CSV format of a specified logical port. If the target transport node id is not provided, the NSX manager will ask the controller for the transport node where the logical port is located. The query parameter "source=cached" is not supported. MAC table retrieval is not supported on logical ports that are attached to a logical router. |
GET /api/v1/logical-ports/<lport-id>/mac-table?format=csv
|
Get realized state & location of a logical portReturns 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. This api is now deprecated. Please use new api - GET policy/api/v1/infra/realized-state/realized-entities?intent_path={{intent-path}} GET policy/api/v1/infra/realized-state/status?intent_path={{intent-path}} |
GET /api/v1/logical-ports/<lport-id>/state
(Deprecated)
|
Get Statistics for Logical Port of a Given Port ID (lport-id)Returns statistics of a specified logical port. If the logical port is attached to a logical router port, query parameter "source=realtime" is not supported. |
GET /api/v1/logical-ports/<lport-id>/statistics
|
Get Operational Status for Logical Port of a Given Port ID (lport-id)Returns operational status of a specified logical port. |
GET /api/v1/logical-ports/<lport-id>/status
|
Get Operational Status Summary of All Logical Ports in the SystemReturns operational status of all logical ports. The query parameter "source=realtime" is not supported. Pagination is not supported for this API. The query parameters "cursor", "sort_ascending", "sort_by", "page_size" and "included_fields" will be ignored. |
GET /api/v1/logical-ports/status
|
List all Logical SwitchesReturns information about all configured logical switches. This api is now deprecated. Please use new api - /infra/segments |
GET /api/v1/logical-switches
(Deprecated)
|
Create a Logical SwitchCreates a new logical switch. The request must include the transport_zone_id, display_name, and admin_state (UP or DOWN). The replication_mode (MTEP or SOURCE) is required for overlay logical switches, but not for VLAN-based logical switches. A vlan needs to be provided for VLAN-based logical switches. This api is now deprecated. Please use new api -/infra/segments/<segment-id> |
POST /api/v1/logical-switches
(Deprecated)
|
Delete a Logical SwitchRemoves a logical switch from the associated overlay or VLAN transport zone. By default, a logical switch cannot be deleted if there are logical ports on the switch, or it is added to a NSGroup. Cascade option can be used to delete all ports and the logical switch. Detach option can be used to delete the logical switch forcibly. This api is now deprecated. Please use new api - /infra/segments/<segment-id> |
DELETE /api/v1/logical-switches/<lswitch-id>
(Deprecated)
|
Get Logical Switch associated with the provided id (lswitch-id)Returns information about the specified logical switch Id. This api is now deprecated. Please use new api - /infra/segments/<segment-id> |
GET /api/v1/logical-switches/<lswitch-id>
(Deprecated)
|
Update a Logical SwitchModifies attributes of an existing logical switch. Modifiable attributes include admin_state, replication_mode, switching_profile_ids and VLAN spec. You cannot modify the original transport_zone_id. This api is now deprecated. Please use new api - PATCH /infra/segments/<segment-id> |
PUT /api/v1/logical-switches/<lswitch-id>
(Deprecated)
|
Get MAC Table for Logical Switch of the Given ID (lswitch-id)Returns MAC table of a specified logical switch from the given transport node if a transport node id is given in the query parameter from the Central Controller Plane. The query parameter "source=cached" is not supported. |
GET /api/v1/logical-switches/<lswitch-id>/mac-table
|
Get MAC Table for Logical Switch of the Given ID (lswitch-id)Returns MAC table of a specified logical switch in CSV format from the given transport node if a transport node id is given in the query parameter from the Central Controller Plane. The query parameter "source=cached" is not supported. |
GET /api/v1/logical-switches/<lswitch-id>/mac-table?format=csv
|
Get the realized state associated with provided logical switch idReturns current state of the logical switch configuration and details of only out-of-sync transport nodes. This api is now deprecated. Please use new api - policy/api/v1/infra/realized-state/realized-entities?intent_path={{intent-path}} |
GET /api/v1/logical-switches/<lswitch-id>/state
(Deprecated)
|
Get Statistics for Logical Switch of the Given ID (lswitch-id)Returns statistics of a specified logical switch. The query parameter "source=realtime" is not supported. |
GET /api/v1/logical-switches/<lswitch-id>/statistics
|
Get Logical Switch runtime status info for a given logical switchReturns the number of ports assigned to logical switch. This api is now deprecated Please use new API - GET policy/api/v1/infra/realized-state/status?intent_path={{intent-path}} |
GET /api/v1/logical-switches/<lswitch-id>/summary
(Deprecated)
|
Get virtual tunnel endpoint table for logical switch of the given ID (lswitch-id)Returns the virtual tunnel endpoint table of a specified logical switch from the given transport node if a transport node id is given in the query parameter, from the Central Controller Plane. The query parameter "source=cached" is not supported. |
GET /api/v1/logical-switches/<lswitch-id>/vtep-table
|
Get virtual tunnel endpoint table for logical switch of the given ID (lswitch-id)Returns virtual tunnel endpoint table of a specified logical switch in CSV format from the given transport node if a transport node id is given in the query parameter from the Central Controller Plane. The query parameter "source=cached" is not supported. |
GET /api/v1/logical-switches/<lswitch-id>/vtep-table?format=csv
|
List logical switches by realized stateReturns a list of logical switches states that have realized state as provided as query parameter. This api is now deprecated. Please use new api - policy/api/v1/infra/realized-state/realized-entities?intent_path={{intent-path}} |
GET /api/v1/logical-switches/state
(Deprecated)
|
Get Status Summary of All Logical Switches in the SystemReturns Operational status of all logical switches. The query parameter "source=realtime" is not supported. |
GET /api/v1/logical-switches/status
|
List Switching ProfilesReturns information about the system-default and user-configured switching profiles. Each switching profile has a unique ID, a display name, and various other read-only and configurable properties. The default switching profiles are assigned automatically to each switch. This api is now deprecated. Please use new api - for QOS profile, please use - /infra/qos-profiles |
GET /api/v1/switching-profiles
(Deprecated)
|
Create a Switching ProfileCreates a new, custom qos, port-mirroring, spoof-guard or port-security switching profile. You can override their default switching profile assignments by creating a new switching profile and assigning it to one or more logical switches. You cannot override the default ipfix or ip_discovery switching profiles. This api is now deprecated. Please use new api - For eg. for QOS profile, please use - PUT /infra/qos-profiles/<qos-profile-id> |
POST /api/v1/switching-profiles
(Deprecated)
|
Delete a Switching ProfileDeletes the specified switching profile. This api is now deprecated. Use new api - for QOS profile, please use - DELETE /infra/qos-profiles/<qos-profile-id> |
DELETE /api/v1/switching-profiles/<switching-profile-id>
(Deprecated)
|
Get Switching Profile by IDReturns information about a specified switching profile. This api is now deprecated. Please use new api - for QOS profile, please use - /infra/qos-profiles/<qos-profile-id> |
GET /api/v1/switching-profiles/<switching-profile-id>
(Deprecated)
|
Update a Switching ProfileUpdates the user-configurable parameters of a switching profile. Only the qos, port-mirroring, spoof-guard and port-security switching profiles can be modified. You cannot modify the ipfix or ip-discovery switching profiles. This api is now deprecated. Use new api, for eg., QOS profile - PATCH /infra/qos-profiles/<qos-profile-id> |
PUT /api/v1/switching-profiles/<switching-profile-id>
(Deprecated)
|
Get Counts of Ports and Switches Using This Switching ProfileThis api is now deprecated. Please use new api - GET policy/api/v1/infra/realized-state/status?intent_path={{intent-path}} |
GET /api/v1/switching-profiles/<switching-profile-id>/summary
(Deprecated)
|
Additional
Links