Skip to content

/AWS1/CL_LSA=>DETACHDISK()

About DetachDisk

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.

Method Signature

IMPORTING

Required arguments:

IV_DISKNAME TYPE /AWS1/LSARESOURCENAME /AWS1/LSARESOURCENAME

The unique name of the disk you want to detach from your instance (my-disk).

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSADETACHDISKRESULT /AWS1/CL_LSADETACHDISKRESULT