v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.

The detach 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.DetachDisk

Headers

X-Amz-Target'Lightsail_20161128.DetachDisk' required

Request body

diskNamestring required

The unique name of the disk you want to detach from your instance (e.g., <code>my-disk</code>).

Response

Success