Create Disk From Snapshot

POST {{aws_lightsail_base_url}}/?addOns&availabilityZone&diskName&diskSnapshotName&restoreDate&sizeInGb&sourceDiskName&tags&useLatestRestorableAutoSnapshot&Version=2016-11-28

Request Params

KeyDatatypeRequiredDescription
addOnsnullAn array of objects that represent the add-ons to enable for the new disk.
availabilityZonenullThe 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.
diskNamenullThe unique Lightsail disk name (e.g., my-disk).
diskSnapshotNamenullThe name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.
restoreDatenullThe date of the automatic snapshot to use for the new disk. Use the get auto snapshots operation to identify the dates of the available automatic snapshots.
sizeInGbnullThe size of the disk in GB (e.g., 32).
sourceDiskNamenullThe name of the source disk from which the source automatic snapshot was created.
tagsnullThe tag keys and optional values to add to the resource during create.
useLatestRestorableAutoSnapshotnullA Boolean value to indicate whether to use the latest available automatic snapshot.
VersionstringThe version of the API.

Request Body

{"addOns"=>[{"addOnType"=>"string", "autoSnapshotAddOnRequest"=>{"snapshotTimeOfDay"=>"string"}}], "availabilityZone"=>"string", "diskName"=>"string", "diskSnapshotName"=>"string", "restoreDate"=>"string", "sizeInGb"=>42, "sourceDiskName"=>"string", "tags"=>[{"key"=>"string", "value"=>"string"}], "useLatestRestorableAutoSnapshot"=>1}