hcloud_firewall_apply_to_resources_action
Apply a Hetzner Cloud firewall to multiple servers or label selectors, extending existing resource assignments in one action.
Instructions
Apply to Resources
Applies a Firewall to multiple resources.
Supported resources:
Servers (with a public network interface)
A Server can be applied to a maximum of 5 Firewalls. This limit applies to Servers applied via a matching Label Selector as well.
Updates to resources matching or no longer matching a Label Selector can take up to a few seconds to be processed.
A Firewall is applied to a resource once the related Action with command apply_firewall successfully finished.
Operation specific errors
Status | Code | Description |
|
| The resource the Firewall should be applied to was not found |
|
| Firewall is already applied to resource |
|
| The network type of the resource is not supported by Firewalls |
|
| The Server the Firewall should be applied to has no public interface |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Firewall. | |
| body | Yes |