Policy > Security > East West Security > Distributed Firewall > Rules

List security policies

List all security policies for a domain.
This API is available when using VMware Cloud (AWS, Dell-EMC, Outpost, Hyperscalers) or VMware NSX-T.

Request:

Method:
GET
URI Path(s):
/policy/api/v1/infra/domains/<domain-id>/security-policies
/policy/api/v1/global-infra/domains/<domain-id>/security-policies
Request Headers:
n/a
Query Parameters:
SecurityPolicyListRequestParameters+
Request Body:
n/a

Example Request:

GET https://<policy-mgr>/policy/api/v1/infra/domains/vmc/security-policies

Successful Response:

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

Example Response:

{ "sort_ascending": true, "sort_by": "display_name", "result_count": 2, "results": [ { "resource_type": "SecurityPolicy", "description": "comm map", "id": "application-section-1", "display_name": "application-section-1", "path": "/infra/domains/vmc/security-policies/application-section-1", "parent_path": "/infra/domains/vmc", "relative_path": "application-section-1", "category": "Application", "sequence_number": 0, "internal_sequence_number": 13000000, "_create_user": "admin", "_create_time": 1517317362027, "_last_modified_user": "admin", "_last_modified_time": 1517317382962, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 1 }, { "resource_type": "SecurityPolicy", "id": "security-policy", "display_name": "security-policy", "path": "/infra/domains/vmc/security-policies/security-policy", "parent_path": "/infra/domains/vmc", "relative_path": "security-policy", "sequence_number": 100, "internal_sequence_number": 13000100, "_create_user": "admin", "_create_time": 1517307910504, "_last_modified_user": "admin", "_last_modified_time": 1517307910504, "_system_owned": false, "_protection": "NOT_PROTECTED", "_revision": 0 } ] }

Required Permissions:

read

Feature:

policy_dfw

Additional Errors: