Actions111
- Action Actions
- Certificate Actions
- Datacenter Actions
- Firewall Actions
- Floating IP Actions
- Image Actions
- ISO Actions
- Load Balancer Actions
- Load Balancer Type Actions
- Location Actions
- Network Actions
- Placement Group Actions
- Pricing Actions
- Primary IP Actions
- Server Actions
- Server Type Actions
- SSH Key Actions
- Volume Actions
Volume → Attach
AI-generatedSummary
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.