/v2/volumesCreate a block storage volume
Creates a block storage volume, optionally from a snapshot. Set filesystem_type to format the volume automatically, and provide snapshot_id when creating from a snapshot. Pre-formatted volumes auto-mount only on supported Droplets created on or after April 26, 2018; attaching them to unsupported Droplets is not recommended.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Volume creation details, including volume attributes and optional filesystem formatting.
A 400 is returned when the request body cannot be parsed, so send a valid volume creation payload. A 401 indicates invalid credentials, a 404 indicates that a resource was not found, a 429 indicates that the API rate limit was exceeded, and a 500 indicates a server error. When creating from a snapshot, use a valid snapshot_id; filesystem_type is optional and controls automatic formatting.