[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
Delete Security Policy
DescriptionDeletes the security policy along with all the rules
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}
Path Parameters
Path Parameters
string
domain-id
Required
string
security-policy-id
Required
Authentication
This operation uses the following authentication methods.
Errors
Errors
ApiError
400
Bad Request
ApiError
403
Forbidden
ApiError
404
Not Found
ApiError
412
Precondition Failed
ApiError
500
Internal Server Error
ApiError
503
Service Unavailable
Code Samples
PowerCLI Client SDK Example
Invoke-DeleteSecurityPolicyForDomain -domainId "MydomainId" -securityPolicyId "MysecurityPolicyId"
cURL Command
curl -X DELETE https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}
Vendor Extensions
This operation contains the following vendor extensions defined in the spec:
x-vmw-doc-operation: delete-security-policy
x-vmw-nsx-module: DfwSecurityPolicy
[{"label":"Latest (v1.0)","version":"latest"}]
nsx-vmc-policy
On This Page
Domains Operations
delete
delete
patch