IONOS Cloud Compute icon

IONOS Cloud Compute

Manage IONOS Cloud servers, volumes, images, and snapshots. Developped with Love by Ascenzia (ascenzia.fr)

Volume → Create

AI-generated

Summary

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'.

Links

Discussion