Update Security Policy
Patch the security policy for a domain. If a security policy for the given security-policy-id is not present, the object will get created and if it is present it will be updated. This is a full replace
Request
URLURL
https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}
Request Body
Request Body
SecurityPolicy of type(s) application/json
Required
Ordered list of Rules. This object is created by default along with the Domain.
(The request body parameter is missing description)
{}
Request data structure does not contain any properties!
cURL Command
curl -X PATCH -H "Content-Type: application/json" -d '{}' https://nsxmanager.your.domain/policy/api/v1/infra/domains/{domain-id}/security-policies/{security-policy-id}
Errors
BadRequest
400
The request cannot be fulfilled due to bad syntax.
Forbidden
403
The server understood the request, but is refusing to fulfill it.
NotFound
404
The requested resource could not be found but may be available again in the future.
PreconditionFailed
412
This error has no documentation
InternalServerError
500
The server encountered an unexpected condition which prevented it from fulfilling the request.
ServiceUnavailable
503
The server is currently unavailable (because it is overloaded or down for maintenance).
On This Page
Security Policies Operations
delete
delete
patch