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
Volume → Create
AI-generatedSummary
Create a new volume in Hetzner Cloud with specified name, size, optional location or server association, labels, and format, optionally attaching and auto-mounting it to a server.
Inputs
- Name - required string defining the volume's name. (required) — Name of the volume.
- Size - required number specifying the volume size in GB. (required) — Size of the volume in gigabytes.
- Location - optional choice of data center location to create the volume in (can be omitted if Server is provided). — Selects the location where the volume is created; ignored if a server is specified.
- Server - optional server to attach the volume to upon creation (volume location matches server location). — The volume will be created in the server's location and attached to that server automatically.
- Auto-Mount - optional boolean to automatically mount the volume after attaching; requires Server input to be set. — If true, the volume is mounted after attachment to the given server.
- Format - optional choice of filesystem format applied to the volume after creation; defaults to 'xfs'. — Filesystem format to apply to the volume after it is created; options are 'xfs' or 'ext4'.
- Labels - optional array of key-value pairs to tag the volume with user-defined metadata. — User-defined labels as key-value pairs to assign to the volume.
Output shape
A single volume object representing the created volume, including its properties and status as returned by Hetzner Cloud API.
The output includes all volume details from the creation response, including identifiers, location, size, attached server (if any), labels, and format status. Auto-mounting applies only if Server and Auto-Mount options are specified.