Create Disk From Snapshot
POST {{aws_lightsail_base_url}}/?addOns&availabilityZone&diskName&diskSnapshotName&restoreDate&sizeInGb&sourceDiskName&tags&useLatestRestorableAutoSnapshot&Version=2016-11-28
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
addOns | null | An array of objects that represent the add-ons to enable for the new disk. | |
availabilityZone | null | 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. | |
diskName | null | The unique Lightsail disk name (e.g., my-disk). | |
diskSnapshotName | null | The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk. | |
restoreDate | null | The 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. | |
sizeInGb | null | The size of the disk in GB (e.g., 32). | |
sourceDiskName | null | The name of the source disk from which the source automatic snapshot was created. | |
tags | null | The tag keys and optional values to add to the resource during create. | |
useLatestRestorableAutoSnapshot | null | A Boolean value to indicate whether to use the latest available automatic snapshot. | |
Version | string | The 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}