NSX-T Data Center REST API
Patch E-W Firewall Rule
Patch the E-W 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/security-policies/default/rules/rule-1
Request:
Method:
PATCH
URI Path(s):
/policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/security-policies/{security-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/org1/projects/project1/vpcs/vpc-1/security-policies/default/rules/rule-1 { "description": "VPC Policy Rule1 patch operation", "display_name": "rule-1", "sequence_number": 1, "source": [ "/orgs/org1/projects/project1/vpcs/vpc-1/groups/group1" ], "destination": [ "/orgs/org1/projects/project1/vpcs/vpc-1/groups/group1" ], "services": [ "ANY" ], "action": "ALLOW", "logged": true, "disabled": false, "notes": "This is sample Policy Rule to allow HTTPS traffic between default and prod-policy" }Successful Response:
Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a