Add Subnet to Network
hetzner_add_subnetAdd a subnet to an existing Hetzner Cloud network by defining its type, IP range, and network zone; supports cloud and vSwitch subnets.
Instructions
Add a subnet to an existing network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource ID | |
| type | Yes | Subnet type: cloud or vswitch; server is a deprecated alias normalized to cloud (upstream removal 2027-04-15) | |
| ip_range | No | IP range of the subnet | |
| vswitch_id | No | ID of the vSwitch (required for vswitch type) | |
| network_zone | Yes | Name of the network zone, e.g. "eu-central" |