• Native OpenStack API

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

Querying a Firewall Policy

Function

This interface is used to query details about a specific firewall policy.

URI

GET /v2.0/fwaas/firewall_policies/{firewall_policy_id}
Table 1 Parameter description

Name

Mandatory

Type

Description

firewall_policy_id

Yes

String

Specifies the firewall policy ID, which uniquely identifies the firewall policy. The firewall_policy_id value is used as the filter.

Request Message

None

Response Message

Table 2 Response parameter

Parameter

Type

Description

firewall_policy

Dict

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

Example:

Example request

GET /v2.0/fwaas/firewall_policies/fed2d88f-d0e7-4cc5-bd7e-c495f67037b6

Example response

{
    "firewall_policy": {
        "description": "", 
        "firewall_rules": [
            "3c0e6267-73df-4d9a-87a6-e226f2db2036"
        ], 
        "tenant_id": "23c8a121505047b6869edf39f3062712", 
        "public": false, 
        "id": "fed2d88f-d0e7-4cc5-bd7e-c495f67037b6", 
        "audited": false, 
        "name": "bobby_fwp1",
        "project_id": "23c8a121505047b6869edf39f3062712"
    }
}

Status Codes

For details, see section Status Codes.