Create Volume
hetzner_create_volumeCreate a new Hetzner volume with a specified name and size in GB. Optionally set filesystem format, attach to a server or location, and enable auto-mount.
Instructions
Create a new volume. Either location or server must be provided to determine placement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the volume | |
| size | Yes | Size of the volume in GB | |
| format | No | Filesystem format for the volume | |
| labels | No | Labels as key-value pairs | |
| server | No | Server ID to attach the volume to. Required if location is not set | |
| location | No | Location name (e.g. "fsn1"). Required if server is not set | |
| automount | No | Auto-mount the volume after attaching to a server |