Actions22
- Server Actions
- Volume Actions
- Image Actions
- Snapshot Actions
Volume → Create
AI-generatedSummary
Create a new volume in an IONOS Cloud datacenter.
Inputs
- datacenterId (required) — ID of the datacenter where the volume will be created.
- volumeName (required) — Name for the volume.
- size (required) — Size of the volume in GB (minimum 1).
- volumeType (required) — Storage type of the volume (HDD, SSD, SSD_PREMIUM, SSD_STANDARD).
- volumeImageSource (required) — How to specify the image for this volume (Image ID, Image Alias, or Licence Type).
Output shape
object
Returns the volume object from the IONOS Cloud API.
Examples
Example 1: Create a 20 GB SSD volume from an Ubuntu image alias.
Set datacenterId, volumeName='my-volume', size=20, volumeType='SSD', volumeImageSource='imageAlias', volumeImageAlias='ubuntu:latest'.