Delete Logical Switch

Delete Logical Switch

Removes a logical switch from the associated overlay or VLAN transport zone. A logical switch cannot be deleted if there are logical ports on the switch. Cascade option can be used to delete all ports and the switch

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

lswitch-id

Query Parameters
boolean
cascade
Optional

Delete a Logical Switch and all the logical ports in it, if none of the logical ports have any attachment.

boolean
detach
Optional

Delete a Logical Switch and all the logical ports in it, regardless of whether the logical port is attached.


Authentication
This operation uses the following authentication methods.
Responses
default

Unexpected error

Returns ApiError of type(s) application/json
{
    "module_name": "string",
    "error_message": "string",
    "error_code": 0
}
string
module_name
Optional

module_name

string
error_message
Optional

error_message

integer As int64 As int64
error_code
Optional

error_code