Skip to content

/AWS1/CL_LSA=>CREATEDISK()

About CreateDisk

Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (us-east-2a).

The create disk operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Method Signature

IMPORTING

Required arguments:

IV_DISKNAME TYPE /AWS1/LSARESOURCENAME /AWS1/LSARESOURCENAME

The unique Lightsail disk name (my-disk).

IV_AVAILABILITYZONE TYPE /AWS1/LSANONEMPTYSTRING /AWS1/LSANONEMPTYSTRING

The Availability Zone where you want to create the disk (us-east-2a). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.

Use the get regions operation to list the Availability Zones where Lightsail is currently available.

IV_SIZEINGB TYPE /AWS1/LSAINTEGER /AWS1/LSAINTEGER

The size of the disk in GB (32).

Optional arguments:

IT_TAGS TYPE /AWS1/CL_LSATAG=>TT_TAGLIST TT_TAGLIST

The tag keys and optional values to add to the resource during create.

Use the TagResource action to tag a resource after it's created.

IT_ADDONS TYPE /AWS1/CL_LSAADDONREQUEST=>TT_ADDONREQUESTLIST TT_ADDONREQUESTLIST

An array of objects that represent the add-ons to enable for the new disk.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LSACREATEDISKRESULT /AWS1/CL_LSACREATEDISKRESULT