• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Firewall
  6. Querying Firewall Policies

Querying Firewall Policies

Function

This interface is used to query all firewall policies accessible to the tenant submitting the request.

URI

GET /v2.0/fwaas/firewall_policies

Request Message

None

Response Message

Table 1 Response parameter

Parameter

Type

Description

firewall_policies

List(firewall policy)

Specifies the firewall policy list. For details, see Table 2.

Example:

Example request

GET /v2.0/fwaas/firewall_policies

Example response

{
    "firewall_policies": [
        {
            "description": "", 
            "firewall_rules": [
                "6c6803e0-ca8c-4aa9-afb3-4f89275b6c32"
            ], 
            "tenant_id": "23c8a121505047b6869edf39f3062712", 
            "public": false, 
            "id": "6b70e321-0c21-4b83-bb8a-a886d1414a5f", 
            "audited": false, 
            "name": "fwp1",
            "project_id": "23c8a121505047b6869edf39f3062712"
        }, 
        {
            "description": "", 
            "firewall_rules": [
                "6c6803e0-ca8c-4aa9-afb3-4f89275b6c32"
            ], 
            "tenant_id": "23c8a121505047b6869edf39f3062712", 
            "public": false, 
            "id": "fce92002-5a15-465d-aaca-9b44453bb738", 
            "audited": false, 
            "name": "fwp2",
            "project_id": "23c8a121505047b6869edf39f3062712"
        }
    ]
}

Status Codes

For details, see section Status Codes.