v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.

The attach disk operation supports tag-based access control via resource tags applied to the resource identified by disk name. For more information, see the Amazon Lightsail Developer Guide.

post/#X-Amz-Target=Lightsail_20161128.AttachDisk

Headers

X-Amz-Target'Lightsail_20161128.AttachDisk' required

Request body

diskNamestring required

The unique Lightsail disk name (e.g., <code>my-disk</code>).

instanceNamestring required

The name of the Lightsail instance where you want to utilize the storage disk.

diskPathstring required

The disk path to expose to the instance (e.g., <code>/dev/xvdf</code>).

autoMountingboolean
<p>A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is <code>False</code>.</p> <important> <p>This value only applies to Lightsail for Research resources.</p> </important>

Response

Success