Create Instances From Snapshot
POST {{aws_lightsail_base_url}}/?addOns&attachedDiskMapping&availabilityZone&bundleId&instanceNames&instanceSnapshotName&keyPairName&restoreDate&sourceInstanceName&tags&useLatestRestorableAutoSnapshot&userData&Version=2016-11-28
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
addOns | null | An array of objects representing the add-ons to enable for the new instance. | |
attachedDiskMapping | null | An object containing information about one or more disk mappings. | |
availabilityZone | null | The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a (case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones parameter to your request. | |
bundleId | null | The bundle of specification information for your virtual private server (or instance), including the pricing plan (e.g., micro_1_0). | |
instanceNames | null | The names for your new instances. | |
instanceSnapshotName | null | The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots. | |
keyPairName | null | The name for your key pair. | |
restoreDate | null | The date of the automatic snapshot to use for the new instance. Use the get auto snapshots operation to identify the dates of the available automatic snapshots. | |
sourceInstanceName | null | The name of the source instance 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. | |
userData | null | You can create a launch script that configures a server with additional user data. For example, apt-get -y update. | |
Version | string | The version of the API. |
Request Body
{"addOns"=>[{"addOnType"=>"string", "autoSnapshotAddOnRequest"=>{"snapshotTimeOfDay"=>"string"}}], "attachedDiskMapping"=>{"string"=>[{"newDiskName"=>"string", "originalDiskPath"=>"string"}]}, "availabilityZone"=>"string", "bundleId"=>"string", "instanceNames"=>["string"], "instanceSnapshotName"=>"string", "keyPairName"=>"string", "restoreDate"=>"string", "sourceInstanceName"=>"string", "tags"=>[{"key"=>"string", "value"=>"string"}], "useLatestRestorableAutoSnapshot"=>1, "userData"=>"string"}