Creates a block storage disk that can be attached to a Lightsail
instance in the same Availability Zone (e.g., us-east-2a
). The disk is
created in the regional endpoint that you send the HTTP request to. For
more information, see Regions and Availability Zones in Lightsail.
lightsail_create_disk(diskName, availabilityZone, sizeInGb, tags)
[required] The unique Lightsail disk name (e.g., my-disk
).
[required] The Availability Zone where you want to create the disk (e.g.,
us-east-2a
). Choose the same Availability Zone as the Lightsail
instance where you want to create the disk.
Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.
[required] The size of the disk in GB (e.g., 32
).
The tag keys and optional values to add to the resource during create.
To tag a resource after it has been created, see the tag resource
operation.
svc$create_disk( diskName = "string", availabilityZone = "string", sizeInGb = 123, tags = list( list( key = "string", value = "string" ) ) )
The create disk
operation supports tag-based access control via
request tags. For more information, see the Lightsail Dev Guide.