Firewall Actions
Remove from Resources
Removes a Firewall from multiple resources.
Supported resources:
- Servers (with a public network interface)
A Firewall is removed from a resource once the related Action with command remove_firewall successfully finished.
Operation specific errors
| Status | Code | Description |
|---|---|---|
| 404 | firewall_resource_not_found | The resource the Firewall should be removed from was not found |
| 422 | firewall_managed_by_label_selector | Firewall is applied via a Label Selector and cannot be removed manually |
post/firewalls/{id}/actions/remove_from_resources
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/firewalls/{id}/actions/remove_from_resources
- Auth: HTTP bearer
Path parameters
idinteger required
ID of the Firewall.
Example:42
ID of the Firewall.
Request body
Example request
{
"remove_from": [
{
"label_selector": {
"selector": "env=prod"
}
}
]
}Response
Request succeeded.
Example response
{
"actions": [
{
"id": 42,
"command": "start_resource",
"started": "2016-01-30T23:55:00Z",
"finished": "2016-01-30T23:55:00Z",
"progress": 100,
"resources": [
{
"id": 42,
"type": "server"
}
],
"error": {
"code": "action_failed",
"message": "Action failed"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.