Creates a block storage disk from a disk snapshot 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_from_snapshot(diskName, diskSnapshotName,
availabilityZone, sizeInGb, tags)[required] The unique Lightsail disk name (e.g., my-disk).
[required] The name of the disk snapshot (e.g., my-snapshot) from which to create
the new storage 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_from_snapshot(
diskName = "string",
diskSnapshotName = "string",
availabilityZone = "string",
sizeInGb = 123,
tags = list(
list(
key = "string",
value = "string"
)
)
)
The create disk from snapshot operation supports tag-based access
control via request tags and resource tags applied to the resource
identified by diskSnapshotName. For more information, see the Lightsail Dev Guide.