Actions47
- Image Actions
- Server Type Actions
- Server Actions
- Server Action Actions
- Primary IP Actions
- Floating IP Actions
- Firewall Actions
- Certificate Actions
- Load Balancer Actions
- Network Actions
- SSH Keys Actions
- Volume Actions
Firewall → Create a Firewall
AI-generatedSummary
Create a new firewall in the Hetzner Cloud environment with a specified name, optional user-defined labels, and an optional set of firewall rules.
Inputs
- Name (required) — Name of the firewall.
- Labels — Optional user-defined labels as key-value pairs to attach to the firewall.
- Rules — Optional array of firewall rules where each rule specifies protocol (tcp, udp, icmp, esp, gre), direction (in or out), permitted source or destination IP addresses in CIDR notation, optional port or port range (for tcp and udp), and an optional description.
Output shape
A single firewall object representing the newly created firewall, including its ID, name, labels, and rules.
The output returns the complete firewall data as received from Hetzner Cloud's API upon creation. Input rules and labels are reflected in the created firewall if provided. No pagination applies as this creates a single resource.