Code | Description |
---|---|
firewall_already_removed | Firewall was already removed from the resource |
firewall_resource_not_found | The resource the Firewall should be attached to was not found |
firewall_managed_by_label_selector | Firewall was applied via label selector and cannot be removed manually |
curl --location --request POST 'https://api.hetzner.cloud/v1/firewalls//actions/remove_from_resources' \
--header 'Content-Type: application/json' \
--data-raw '{
"remove_from": [
{
"server": {
"id": 42
},
"type": "server"
}
]
}'
{
"actions": [
{
"command": "remove_firewall",
"error": {
"code": "action_failed",
"message": "Action failed"
},
"finished": "2016-01-30T23:56:00.000Z",
"id": 14,
"progress": 100,
"resources": [
{
"id": 42,
"type": "server"
},
{
"id": 38,
"type": "firewall"
}
],
"started": "2016-01-30T23:55:00.000Z",
"status": "success"
}
]
}