IONOS Cloud Compute icon

IONOS Cloud Compute

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

Server → Attach Volume

AI-generated

Summary

Attach an existing volume to a server in IONOS Cloud.

Inputs

  • datacenterId (required) — ID of the datacenter containing the server and volume.
  • serverId (required) — ID of the server to which the volume will be attached.
  • attachVolumeId (required) — ID of the volume to attach.

Output shape

Array of items each containing an json property with the IONOS Cloud API response for the attach volume operation.

The response includes details of the attached volume as returned by the POST /datacenters/{datacenterId}/servers/{serverId}/volumes endpoint.

Examples

Example 1: Attach a volume to a server

Set datacenterId, serverId, and attachVolumeId to the respective IDs.

Links

Discussion