• Native OpenStack API

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

List firewall rules

Function Description

This interface is used to query all firewall rules.

Interface Format

Method

URI

Description

GET

/v2.0/fwaas/firewall_rules

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

Restrictions

N/A

Request Parameter

None

Response Parameter

Parameter

Type

Mandatory

Description

firewall_rules

List(firewall rule)

Yes

Specifies the firewall rule list. For details, see Table 1.

Request Example

GET  /v2.0/fwaas/firewall_rules

Response Example

{
"firewall_rules": [
{
"protocol": "tcp",
"description": "",
"source_ip_address": null,
"destination_ip_address": null,
"source_port": null,
"destination_port": "22",
"id": "7f8a4589-b3a1-46f6-a7e8-61f114c279c1",
"name": "",
"tenant_id": "23c8a121505047b6869edf39f3062712",
"enabled": true,
"action": "allow",
"ip_version": 4,
"public": false
},
{
"protocol": "icmp",
"description": "",
"source_ip_address": null,
"destination_ip_address": null,
"source_port": null,
"destination_port": null,
"id": "464011ab-8485-49ae-bb24-17b807783384",
"name": "",
"tenant_id": "23c8a121505047b6869edf39f3062712",
"enabled": true,
"action": "allow",
"ip_version": 4,
"public": false
}
]
}

Error Code

See section Return Code Processing.