Delete NS Service

Delete NS Service

Deletes the specified NSService. By default, if the NSService is being referred in an NSServiceGroup, it can't be deleted. In such situations, pass "force=true" as a parameter to force delete the NSService. System defined NSServices can't be deleted using "force" flag.

Request
URI
DELETE
https://nsxmanager.your.domain/api/v1/ns-services/{ns-service-id}
COPY
Path Parameters
string
ns-service-id
Required

NSService Id

Query Parameters
boolean
force
Optional

Force delete the resource even if it is being used somewhere


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