• Native OpenStack API

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

Create firewall group

Function Description

This interface is used to create a firewall group.

Interface Format

Method

URI

Description

POST

/v2.0/fwaas/firewall_groups

Creates a firewall group.

Restrictions

N/A

Request Parameter

Parameter

Type

Mandatory

Description

firewall_group

Dict

Yes

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

This parameter has no mandatory fields.

Response Parameter

Parameter

Type

Mandatory

Description

firewall_group

Dict

Yes

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

Request Example

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

Response Example

{
"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": ""
}
}

Error Code

See section Return Code Processing.