Skip to content

Get Export Snapshot Records

lightsail_get_export_snapshot_records R Documentation

Returns all export snapshot records created as a result of the export snapshot operation

Description

Returns all export snapshot records created as a result of the ⁠export snapshot⁠ operation.

An export snapshot record can be used to create a new Amazon EC2 instance and its related resources with the create_cloud_formation_stack action.

Usage

lightsail_get_export_snapshot_records(pageToken)

Arguments

pageToken

The token to advance to the next page of results from your request.

To get a page token, perform an initial get_export_snapshot_records request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Value

A list with the following syntax:

list(
  exportSnapshotRecords = list(
    list(
      name = "string",
      arn = "string",
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      location = list(
        availabilityZone = "string",
        regionName = "us-east-1"|"us-east-2"|"us-west-1"|"us-west-2"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"eu-central-1"|"ca-central-1"|"ap-south-1"|"ap-southeast-1"|"ap-southeast-2"|"ap-northeast-1"|"ap-northeast-2"|"eu-north-1"
      ),
      resourceType = "ContainerService"|"Instance"|"StaticIp"|"KeyPair"|"InstanceSnapshot"|"Domain"|"PeeredVpc"|"LoadBalancer"|"LoadBalancerTlsCertificate"|"Disk"|"DiskSnapshot"|"RelationalDatabase"|"RelationalDatabaseSnapshot"|"ExportSnapshotRecord"|"CloudFormationStackRecord"|"Alarm"|"ContactMethod"|"Distribution"|"Certificate"|"Bucket",
      state = "Started"|"Succeeded"|"Failed",
      sourceInfo = list(
        resourceType = "InstanceSnapshot"|"DiskSnapshot",
        createdAt = as.POSIXct(
          "2015-01-01"
        ),
        name = "string",
        arn = "string",
        fromResourceName = "string",
        fromResourceArn = "string",
        instanceSnapshotInfo = list(
          fromBundleId = "string",
          fromBlueprintId = "string",
          fromDiskInfo = list(
            list(
              name = "string",
              path = "string",
              sizeInGb = 123,
              isSystemDisk = TRUE|FALSE
            )
          )
        ),
        diskSnapshotInfo = list(
          sizeInGb = 123
        )
      ),
      destinationInfo = list(
        id = "string",
        service = "string"
      )
    )
  ),
  nextPageToken = "string"
)

Request syntax

svc$get_export_snapshot_records(
  pageToken = "string"
)