Hetzner Cloud icon

Hetzner Cloud

Manage servers, volumes, networks and more in Hetzner Cloud

Firewall → Apply to Resources

AI-generated

Summary

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_to array 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_resources action endpoint and unwraps the response’s actions property.

Links

Discussion