• Native OpenStack API

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

Creating a Firewall Group

Function

This interface is used to create a firewall group.

URI

POST /v2.0/fwaas/firewall_groups

Request Message

Table 1 Request parameter

Parameter

Type

Mandatory

Description

firewall_group

Dict

Yes

Specifies the firewall group list. For details, see Table 3.

This parameter has no mandatory fields.

Response Message

Table 2 Response parameter

Parameter

Type

Description

firewall_group

Dict

Specifies the firewall group list. For details, see Table 3.

Example:

Example request

POST /v2.0/fwaas/firewall_groups
{
    "firewall_group": {
        "ingress_firewall_policy_id": "afc52ce9-5305-4ec9-9feb-44feb8330341", 
        "ports": [
            "c133f2bf-6937-4416-bb17-012e1be5cd2d"
        ]
    }
}

Example response

{
    "firewall_group": {
        "status": "PENDING_CREATE", 
        "public": false, 
        "egress_firewall_policy_id": null, 
        "name": "", 
        "admin_state_up": true, 
        "ports": [
            "c133f2bf-6937-4416-bb17-012e1be5cd2d"
        ], 
        "tenant_id": "23c8a121505047b6869edf39f3062712", 
        "id": "0415f554-26ed-44e7-a881-bdf4e6216e38", 
        "ingress_firewall_policy_id": "afc52ce9-5305-4ec9-9feb-44feb8330341", 
        "description": "",
        "project_id": "23c8a121505047b6869edf39f3062712"
    }
}

Status Codes

For details, see section Status Codes.