Actions111
- Action Actions
- Certificate Actions
- Datacenter Actions
- Firewall Actions
- Floating IP Actions
- Image Actions
- ISO Actions
- Load Balancer Actions
- Load Balancer Type Actions
- Location Actions
- Network Actions
- Placement Group Actions
- Pricing Actions
- Primary IP Actions
- Server Actions
- Server Type Actions
- SSH Key Actions
- Volume Actions
Firewall → Apply to Resources
AI-generatedSummary
Apply the selected Hetzner Cloud firewall to servers or other resources described in the request body. Choose a firewall from the list or enter its ID, then provide an apply_to array in the JSON targets field using Hetzner Cloud’s resource reference structure.
Inputs
- Firewall (required) — Select a firewall from the searchable list or enter its ID.
- Apply / Remove Targets (JSON) — JSON request body containing an
apply_toarray of resource references. Defaults to{}; provide the array needed to specify the resources to receive the firewall. - Request Options — Optional HTTP settings for batching, SSL certificate validation, proxy, and timeout. Batching defaults to 50 items per batch with a 1000 ms interval.
Output shape
A list of action records returned by Hetzner Cloud.
The operation sends a POST request to the firewall’s
apply_to_resourcesaction endpoint and unwraps the response’sactionsproperty.