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.

Request:

Method:
PUT
URI Path(s):
/global-manager/api/v1/global-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:

PUT https://<policy-mgr>/global-manager/api/v1/global-infra/domains/vmc-domain/gateway-policies/default/rules/entry1 { "sequence_number": 0, "source_groups": [ "/global-infra/tier-0s/vmc/groups/source" ], "services": ["/global-infra/services/HTTP"], "logged": false, "destination_groups": [ "/global-infra/domains/vmc-domain/groups/destination" ], "scope": [ "/global-infra/tier-0s/vmc" ], "action":"ALLOW", "_revision": 1 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
Rule+

Example Response:

{ "resource_type": "Rule", "description": "entry1", "id": "entry1", "display_name": "entry1", "path": "/global-infra/domains/vmc-domain/gateway-policies/default/rules/entry1", "parent_path": "/global-infra/domains/vmc-domain/gateway-policies/default", "relative_path": "entry1", "sequence_number": 0, "source_groups": [ "/global-infra/tier-0s/vmc/groups/source" ], "logged": false, "destination_groups": [ "/global-infra/domains/vmc-domain/groups/destination" ], "scope": [ "/global-infra/tier-0s/vmc" ], "action": "ALLOW", "services": [ "/global-infra/services/HTTP" ], "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 2 }

Required Permissions:

crud

Feature:

policy_edge_fw

Additional Errors: