v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14159650798.5 KB

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

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

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

Headers

X-Amz-Target'Lightsail_20161128.CreateDisk' required

Request body

diskNamestring required

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

availabilityZonestring required
<p>The Availability Zone where you want to create the disk (e.g., <code>us-east-2a</code>). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.</p> <p>Use the <code>get regions</code> operation to list the Availability Zones where Lightsail is currently available.</p>
sizeInGbinteger required

The size of the disk in GB (e.g., <code>32</code>).

Response

Success