Create Volume
hetzner_create_volumeCreate a new volume in Hetzner Cloud. Specify size, name, and optionally location or server to attach.
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 | |
| location | No | Location name (e.g. "fsn1"). Required if server is not set | |
| server | No | Server ID to attach the volume to. Required if location is not set | |
| format | No | Filesystem format for the volume | |
| automount | No | Auto-mount the volume after attaching to a server | |
| labels | No | Labels as key-value pairs |