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 → Remove From Resources
AI-generatedSummary
Removes a Hetzner Cloud firewall from servers or label selectors by POSTing to /v1/firewalls/{id}/actions/remove_from_resources, returning the resulting action records.
Inputs
- Firewall (required) — The firewall to operate on, chosen from a searchable list of firewalls (fetched with up to 50 per page) or entered by numeric ID. It is placed in the URL path.
- Apply / Remove Targets (JSON) — JSON object sent as the request body. For this operation it should contain a "remove_from" array of resource references, for example server or label_selector entries as defined by the Hetzner Cloud API. Defaults to {}, which sends no extra body, so the API will most likely reject the request. Invalid JSON raises a node error.
- Request Options — Node-level settings: batching (items per batch, interval in ms), ignore SSL issues, proxy URL, and timeout in ms (default 10000).
Output shape
The "actions" array from the Hetzner API response, with one action object per affected resource. Each object includes fields such as id, command, status and progress.
The call returns once the API accepts the request. The actions may still be running, so check their status with the Action resource if you need confirmation. The firewall ID is not sent in the body. Errors from the API, such as an unknown firewall or malformed targets, surface as node errors.
Examples
Example 1: Detach a firewall from a specific server
Firewall: select from list or ID 42. Targets JSON: {"remove_from":[{"type":"server","server":{"id":123456}}]}
Example 2: Detach a firewall from all servers matching a label
Firewall by ID. Targets JSON: {"remove_from":[{"type":"label_selector","label_selector":{"selector":"env=staging"}}]}