Actions22
- Server Actions
- Volume Actions
- Image Actions
- Snapshot Actions
Server → Attach Volume
AI-generatedSummary
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.