• Native OpenStack API

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

Update firewall policy

Function Description

This interface is used to update a firewall policy.

Interface Format

Method

URI

Description

PUT

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

This interface is used to update a firewall policy.

Restrictions

N/A

Request Parameter

Parameter

Type

Mandatory

Description

firewall_policy

Dict

Yes

Specifies the firewall policy. For details, see Table 2.

This parameter has no mandatory fields.

Response Parameter

Parameter

Type

Mandatory

Description

firewall_policy

Dict

Yes

Specifies the firewall policy. For details, see Table 2.

Request Example

PUT /v2.0/fwaas/firewall_policies/2fb0e81f-9f63-44b2-9894-c13a3284594a 
{
"firewall_policy": {
"firewall_rules": [
"0f82b221-8cd6-44bd-9dfc-0e118fa7b6b1"
]
}
}

Response Example

{
"firewall_policy": {
"description": "",
"firewall_rules": [
"0f82b221-8cd6-44bd-9dfc-0e118fa7b6b1"
],
"tenant_id": "23c8a121505047b6869edf39f3062712",
"public": false,
"id": "2fb0e81f-9f63-44b2-9894-c13a3284594a",
"audited": false,
"name": "test-policy"
}
}

Error Code

See section Return Code Processing.