Policy > Security > North South Security > Gateway Firewall > Tier-0 Gateways

Get list of gateway policies with rules that belong to the specific Tier-0 logical router.

Get filtered view of gateway rules associated
with the Tier-0. The gateay policies are returned in the
order of category and precedence.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/tier-0s/<tier-0-id>/gateway-firewall
/policy/api/v1/global-infra/tier-0s/<tier-0-id>/gateway-firewall
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/tier-0s/vmc/gateway-firewall

Successful Response:

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

Example Response:

{ "result_count": 2, "results": [ { "resource_type": "GatewayPolicy", "id": "internal", "display_name": "internal", "path": "/infra/domains/vmc-domain/gateway-policies/internal", "parent_path": "/infra/domains/vmc-domain", "relative_path": "internal", "sequence_number": 20, "internal_sequence_number": 20020, "category": "PRE_RULES", "rules": [ { "resource_type": "Rule", "description": "entry1", "id": "entry1", "display_name": "entry1", "path": "/infra/domains/vmc-domain/gateway-policies/default/rules/entry1", "parent_path": "/infra/domains/vmc-domain/gateway-policies/default", "relative_path": "entry1", "sequence_number": 0, "source_groups": [ "/infra/domains/vmc/groups/source" ], "logged": false, "destination_groups": [ "/infra/domains/vmc-domain/groups/destination" ], "scope": [ "/infra/tier-0s/vmc" ], "action": "ALLOW", "services": [ "/infra/services/HTTP" ], "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 3 } ], "_create_user": "admin", "_create_time": 1516295469778, "_last_modified_user": "admin", "_last_modified_time": 1516295469778, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 }, { "resource_type": "GatewayPolicy", "id": "default", "display_name": "/infra/domains/vmc-domain/gateway-policies/default", "path": "/infra/domains/vmc-domain/gateway-policies/default", "parent_path": "/infra/domains/vmc-domain", "relative_path": "default", "sequence_number": 10, "internal_sequence_number": 20010, "category": "POST_RULES", "rules": [ { "resource_type": "Rule", "description": "entry1", "id": "entry1", "display_name": "entry1", "path": "/infra/domains/vmc-domain/gateway-policies/default/rules/entry1", "parent_path": "/infra/domains/vmc-domain/gateway-policies/default", "relative_path": "entry1", "sequence_number": 0, "source_groups": [ "/infra/domains/vmc/groups/source" ], "logged": false, "destination_groups": [ "/infra/domains/vmc-domain/groups/destination" ], "scope": [ "/infra/tier-0s/vmc/locale-services/locale-1" ], "action": "ALLOW", "services": [ "/infra/services/HTTP" ], "_create_user": "admin", "_create_time": 1516386404233, "_last_modified_user": "admin", "_last_modified_time": 1516431370604, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 3 } ], "_create_user": "admin", "_create_time": 1516295469775, "_last_modified_user": "admin", "_last_modified_time": 1516432061800, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 6 } ] }

Required Permissions:

read

Feature:

policy_edge_fw

Additional Errors: