• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Firewall as a Service
  6. Remove firewall rule in firewall policy

Remove firewall rule in firewall policy

Function Description

This interface is used to delete a firewall rule from a firewall policy.

Interface Format

Method

URI

Description

PUT

/v2.0/fwaas/firewall_policies/{firewall_policy_id}/remove_rule

Deletes a firewall rule from a firewall policy.

Restrictions

N/A

Request Parameter

Parameter

Type

Mandatory

Description

firewall_rule_id

String

Yes

Specifies the firewall rule ID.

Response Parameter

Parameter

Type

Mandatory

Description

description

String

Yes

Specifies the policy description.

audited

Boolean

Yes

This parameter is set to False once the policy or related rule changes.

firewall_rules

List

Yes

Specifies the list of IDs of rules associated with the policy.

id

String

Yes

Specifies the policy ID.

name

String

Yes

Specifies the policy name.

public

Boolean

Yes

If this parameter is set to True, firewall policies for other items are available. By default, the value is False.

tenant_id

String

Yes

Specifies the tenant ID.

Request Example

PUT /v2.0/fwaas/firewall_policies/afc52ce9-5305-4ec9-9feb-44feb8330341/remove_rule 

{

"firewall_rule_id": "0f82b221-8cd6-44bd-9dfc-0e118fa7b6b1"

}

Response Example

{
    "description": "",
    "firewall_rules": [
        "b8243448-cb3c-496e-851c-dadade4c161b"
    ],
    "tenant_id": "23c8a121505047b6869edf39f3062712",
    "public": false,
    "id": "afc52ce9-5305-4ec9-9feb-44feb8330341",
    "audited": false,
    "name": "test-policy"
}

Error Code

For details, see section Return Code Processing.