• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Firewall as a Service
  6. List firewall policies

List firewall policies

Function Description

This interface is used to query all firewall policies.

Interface Format

Method

URI

Description

GET

/v2.0/fwaas/firewall_policies

Queries all firewall policies accessible to the tenant submitting the request.

Restrictions

N/A

Request Parameter

None

Response Parameter

Parameter

Type

Mandatory

Description

firewall_policies

List(firewall policy)

Yes

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

Request Example

GET  /v2.0/fwaas/firewall_policies

Response Example

{
"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"
},
{
"description": "",
"firewall_rules": [
"6c6803e0-ca8c-4aa9-afb3-4f89275b6c32"
],
"tenant_id": "23c8a121505047b6869edf39f3062712",
"public": false,
"id": "fce92002-5a15-465d-aaca-9b44453bb738",
"audited": false,
"name": "fwp2"
}
]
}

Error Code

See section Return Code Processing.