• Native OpenStack API

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

Querying a Firewall Rule

Function

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

URI

GET /v2.0/fwaas/firewall_rules/{firewall_rule_id}
Table 1 Parameter description

Name

Mandatory

Type

Description

firewall_rule_id

Yes

String

Specifies the firewall rule ID, which uniquely identifies the firewall rule. The firewall_rule_id value is used as the filter.

Request Message

None

Response Message

Table 2 Response parameter

Parameter

Type

Description

firewall_rule

Dict

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

Example:

Example request

GET /v2.0/fwaas/firewall_rules/514e6776-162a-4b5d-ab8b-aa36b86655ef

Example response

{
    "firewall_rule": {
        "protocol": "tcp", 
        "name": "bobby_rule", 
        "mode": "normal", 
        "tenant_id": "4490a89232ce46d4ae4bfb227ef1a40a", 
        "rule_profile": "", 
        "enabled": true, 
        "source_port": null, 
        "source_ip_address": null, 
        "destination_ip_address": null, 
        "firewall_policy_id": null, 
        "action": "allow", 
        "position": null, 
        "ip_version": 4, 
        "shared": false, 
        "destination_port": null, 
        "id": "514e6776-162a-4b5d-ab8b-aa36b86655ef", 
        "description": "",
        "project_id": "4490a89232ce46d4ae4bfb227ef1a40a"
    }
}

Status Codes

For details, see section Status Codes.