Delete Logical Port

Delete Logical Port

Deletes 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.

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

lport-id

Query Parameters
boolean
detach
Optional

force delete even if attached or referenced by a group


Authentication
This operation uses the following authentication methods.
Responses
200
Operation doesn't return any data structure

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