NSX-T Data Center REST API
Patch N-S Firewall Rule
Patch the N-S Firewall Rule. If a Rule for the givenRule-id is not present, the object will get created and if
it is present it will be updated. This is a full replace
PATCH /orgs/org1/projects/project1/vpcs/vpc-1/gateway-policies/default/rules/rule-1
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/gateway-policies/{gateway-policy-id}/rules/{rule-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
Rule+
Example Request:
PATCH https://<policy-mgr>/policy/api/v1/orgs/default/projects/project-1/vpcs/vpc-1/gateway-policies/test/rules/test-rule { "action": "DROP", "source_groups": [ "ANY" ], "destination_groups": [ "ANY" ], "services": [ "ANY" ], "profiles": [ "ANY" ], "sequence_number": 1 }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a