Lightsail.Paginator.
GetDiskSnapshots
¶paginator = client.get_paginator('get_disk_snapshots')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from Lightsail.Client.get_disk_snapshots()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
PaginationConfig={
'MaxItems': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
A token to specify where to start paginating. This is the NextToken
from a previous response.
{
'diskSnapshots': [
{
'name': 'string',
'arn': 'string',
'supportCode': 'string',
'createdAt': datetime(2015, 1, 1),
'location': {
'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',
'tags': [
{
'key': 'string',
'value': 'string'
},
],
'sizeInGb': 123,
'state': 'pending'|'completed'|'error'|'unknown',
'progress': 'string',
'fromDiskName': 'string',
'fromDiskArn': 'string',
'fromInstanceName': 'string',
'fromInstanceArn': 'string',
'isFromAutoSnapshot': True|False
},
],
'NextToken': 'string'
}
Response Structure
An array of objects containing information about all block storage disk snapshots.
Describes a block storage disk snapshot.
The name of the disk snapshot (e.g., my-disk-snapshot
).
The Amazon Resource Name (ARN) of the disk snapshot.
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
The date when the disk snapshot was created.
The AWS Region and Availability Zone where the disk snapshot was created.
The Availability Zone. Follows the format us-east-2a
(case-sensitive).
The Amazon Web Services Region name.
The Lightsail resource type (e.g., DiskSnapshot
).
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
Describes a tag key and optional value assigned to an Amazon Lightsail resource.
For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The key of the tag.
Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @
The value of the tag.
Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @
The size of the disk in GB.
The status of the disk snapshot operation.
The progress of the snapshot.
The unique name of the source disk from which the disk snapshot was created.
The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
The unique name of the source instance from which the disk (system volume) snapshot was created.
The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
A Boolean value indicating whether the snapshot was created from an automatic snapshot.
A token to resume pagination.