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

Revise the positioning of gateway policy

This is used to set a precedence of a gateway policy w.r.t others.

Request:

Method:
POST
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/gateway-policies/<gateway-policy-id>?action=revise
Request Headers:
n/a
Query Parameters:
SecurityPolicyInsertParameters+
Request Body:
GatewayPolicy+

Example Request:

POST https://<policy-mgr>/policy/api/v1/infra/domains/vmc/gateway-policies/cgw-1?action=revise&anchor_path=/infra/domains/vmc/gateway-policies/cgw-2&operation=insert_before { "description": "policy revised", "display_name": "cgw-1", "category": "SharedPreRules", "rules": [ { "description": " rule", "display_name": "ce-1", "sequence_number": 1, "source_groups": [ "/infra/domains/vmc/groups/dbgroup" ], "destination_groups": [ "/infra/domains/vmc/groups/appgroup" ], "services": [ "/infra/services/HTTP", "/infra/services/CIM-HTTP" ], "scope": [ "/infra/tier-1s/cgw" ], "action": "ALLOW" } ] }

Successful Response:

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

Example Response:

{ "resource_type": "GatewayPolicy", "description": "comm map revised", "id": "cgw-1", "display_name": "cgw-1", "path": "/infra/domains/vmc/gateway-policies/cgw-1", "parent_path": "/infra/domains/vmc", "relative_path": "cgw-1", "rules": [ { "resource_type": "Rule", "description": " comm entry", "id": "ce-1", "display_name": "ce-1", "path": "/infra/domains/vmc/gateway-policies/cgw1/rules/ce-1", "parent_path": "/infra/domains/vmc/gateway-policies/cgw1", "relative_path": "ce-1", "sequence_number": 1, "source_groups": [ "/infra/domains/vmc/groups/dbgroup" ], "logged": false, "destination_groups": [ "/infra/domains/vmc/groups/appgroup" ], "scope": [ "/infra/tier-1s/cgw" ], "action": "ALLOW", "services": [ "/infra/services/HTTP", "/infra/services/CIM-HTTP" ], "_create_user": "admin", "_create_time": 1517317382942, "_last_modified_user": "admin", "_last_modified_time": 1517317382962, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 } ], "category": "SharedPreRules", "sequence_number": 0, "internal_sequence_number": 20000, "_create_user": "admin", "_create_time": 1517317362027, "_last_modified_user": "admin", "_last_modified_time": 1517317362027, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }

Required Permissions:

crud

Feature:

policy_edge_fw

Additional Errors: