• Native OpenStack API

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

Update firewall rule

Function Description

This interface is used to update a firewall rule.

Interface Format

Method

URI

Description

PUT

/v2.0/fwaas/firewall_rules/{firewall_rule_id}

Updates a firewall rule.

Restrictions

N/A

Request Parameter

Parameter

Type

Mandatory

Description

firewall_rule

Dict

Yes

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

This parameter has no mandatory fields.

Response Parameter

Parameter

Type

Mandatory

Description

firewall_rule

Dict

Yes

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

Request Example

PUT /v2.0/fwaas/firewall_rules/b94acf06-efc2-485d-ba67-a61acf2a7e28
{
"firewall_rule": {
"action": "reject"
}
}

Response Example

{
"firewall_rule": {
"protocol": "tcp",
"description": "",
"source_ip_address": null,
"destination_ip_address": null,
"source_port": null,
"destination_port": "80",
"id": "b94acf06-efc2-485d-ba67-a61acf2a7e28",
"name": "ALLOW_HTTP",
"tenant_id": "23c8a121505047b6869edf39f3062712",
"enabled": true,
"action": "reject",
"ip_version": 4,
"public": false
}
}

Error Code

See section Return Code Processing.