Policy > Security > North South Security > Gateway Firewall > Rules

Update gateway rule

Update the gateway rule.
Create new rule if a rule with the rule-id is not already present.
Performance Note: If you want to edit several rules in a gateway policy,
prefer below mentioned API for optimal performance.
Pass all the rules which you wish to edit as embedded rules to it.
Use this API - PATCH (or PUT)
/infra/domains/<domain-id>/gateway-policies/<gateway-policy-id>

Concurrency Note: Concurrent firewall rule creation is not supported under the same Gateway Policy.

Request:

Method:
PATCH
URI Path(s):
/policy/api/v1/infra/domains/<domain-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/infra/domains/vmc-domain/gateway-policies/default/rules/entry1 { "sequence_number": 0, "source_groups": [ "/infra/tier-0s/vmc/groups/source" ], "services": ["/infra/services/HTTP"], "logged": false, "destination_groups": [ "/infra/domains/vmc-domain/groups/destination" ], "scope": [ "/infra/tier-0s/vmc" ], "action":"ALLOW" }

Successful Response:

Response Code:
200 OK
Response Headers:
n/a
Response Body:
n/a

Required Permissions:

crud

Feature:

policy_edge_fw

Additional Errors: