paws.compute (version 0.1.0)

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

Description

Creates a block storage disk 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(diskName, availabilityZone, sizeInGb, tags)

Arguments

diskName

[required] The unique Lightsail disk name (e.g., my-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(
  diskName = "string",
  availabilityZone = "string",
  sizeInGb = 123,
  tags = list(
    list(
      key = "string",
      value = "string"
    )
  )
)

Details

The create disk operation supports tag-based access control via request tags. For more information, see the Lightsail Dev Guide.