paws.compute (version 0.1.0)

lightsail_create_disk_from_snapshot: Creates a block storage disk from a disk snapshot that can be attached to a Lightsail instance in the same Availability Zone (e

Description

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.

Usage

lightsail_create_disk_from_snapshot(diskName, diskSnapshotName,
  availabilityZone, sizeInGb, tags)

Arguments

diskName

[required] The unique Lightsail disk name (e.g., my-disk).

diskSnapshotName

[required] The name of the disk snapshot (e.g., my-snapshot) from which to create the new storage disk.

availabilityZone

[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.

sizeInGb

[required] The size of the disk in GB (e.g., 32).

tags

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.

Request syntax

svc$create_disk_from_snapshot(
  diskName = "string",
  diskSnapshotName = "string",
  availabilityZone = "string",
  sizeInGb = 123,
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Details

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.