Hetzner Cloud icon

Hetzner Cloud

Manage servers, volumes, networks and more in Hetzner Cloud

Volume → Attach

AI-generated

Summary

Attach a Hetzner Cloud volume to a server by submitting the volume and server IDs, with an option to auto-mount it. The operation sends a POST request to the volume’s attach action and returns the action object.

Inputs

  • Volume (required) — Select a volume from the searchable list or enter its ID.
  • Server (required) — Select a server from the searchable list or enter its ID; the ID is sent as a number.
  • Automount — Whether to auto-mount the volume after attaching it; defaults to false.

Output shape

A single action record.

The response is unwrapped from the API’s action property.

Links

Discussion