hcloud_create_volume
Create a Hetzner Cloud Volume, optionally attaching it to a server or placing it in a specified location for unattached storage.
Instructions
Create a Volume
Creates a new Volume attached to a Server. If you want to create a Volume that is not attached to a Server, you need to provide the location key instead of server. This can be either the ID or the name of the Location this Volume will be created in. Note that a Volume can be attached to a Server only in the same Location as the Volume itself.
Specifying the Server during Volume creation will automatically attach the Volume to that Server after it has been initialized. In that case, the next_actions key in the response is an array which contains a single attach_volume action.
The minimum Volume size is 10GB and the maximum size is 10TB (10240GB).
A volume’s name can consist of alphanumeric characters, dashes, underscores, and dots, but has to start and end with an alphanumeric character. The total length is limited to 64 characters. Volume names must be unique per Project.
Operation specific errors
Status | Code | Description |
|
| There is no volume space left in the given location |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| wait | No | Poll the resulting action until success/error or timeout. |