POST /firewalls/{id}/actions/remove_from_resources
Removes a Firewall from multiple resources.
Supported resources:
- Servers (with a public network interface)
Error Codes specific to this Call
Code | Description |
---|---|
firewall_already_removed | Firewall is already removed from the resource |
firewall_resource_not_found | The resource the Firewall should be removed from was not found |
firewall_managed_by_label_selector | Firewall is applied via a Label Selector and cannot be removed manually |
Servers
- https://api.hetzner.cloud/v1
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | Yes |
ID of the Firewall. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
remove_from[] |
Array | Yes |
Resources to remove the Firewall from. |
remove_from[].label_selector |
Object | No |
Label Selector the Firewall is applied to. Only set for |
remove_from[].label_selector.selector |
String | Yes |
The selector. |
remove_from[].type |
String | Yes |
Type of the resource. Possible values:
|
remove_from[].server |
Object | No |
Server the Firewall is applied to. Only set for |
remove_from[].server.id |
Integer | Yes |
ID of the Server. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.