Skip to main content

tape_archives

Creates, updates, deletes, gets or lists a tape_archives resource.

Overview

Nametape_archives
TypeResource
Idaws.storagegateway.tape_archives

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completion_timestring (date-time)The time that the archiving of the virtual tape was completed. The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
kms_keystringOptional. The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. Storage Gateway does not support asymmetric CMKs. This value must be set if KMSEncrypted is true, or if EncryptionType is SseKms or DsseKms. (pattern: <code>(^arn:(aws(|-cn|-us-gov|-iso[A-Za-z0-9_-]*|-eusc)):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)</code>)
pool_entry_datestring (date-time)The time that the tape entered the custom tape pool. The default timestamp format is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' format.
pool_idstringThe ID of the pool that was used to archive the tape. The tapes in this pool are archived in the S3 storage class that is associated with the pool.
retention_start_datestring (date-time)If the archived tape is subject to tape retention lock, the date that the archived tape started being retained.
retrieved_tostringThe Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.
tape_arnstringThe Amazon Resource Name (ARN) of an archived virtual tape. (pattern: <code>arn:(aws(|-cn|-us-gov|-iso[A-Za-z0-9_-]*|-eusc)):storagegateway:[a-z-0-9]+:[0-9]+:tape/[0-9A-Z]{5,16}$</code>)
tape_barcodestringThe barcode that identifies the archived virtual tape. (pattern: <code>^[A-Z0-9]*$</code>)
tape_created_datestring (date-time)The date the virtual tape was created.
tape_size_in_bytesinteger (int64)The size, in bytes, of the archived virtual tape.
tape_statusstringThe current state of the archived virtual tape.
tape_used_in_bytesinteger (int64)The size, in bytes, of data stored on the virtual tape. This value is not available for tapes created prior to May 13, 2015.
wormbooleanSet to true if the archived tape is stored as write-once-read-many (WORM).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_tape_archivesselectregionReturns a description of specified virtual tapes in the virtual tape shelf (VTS). This operation is only supported in the tape gateway type. If a specific TapeARN is not specified, Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.
delete_tape_archivedeleteregionDeletes the specified virtual tape from the virtual tape shelf (VTS). This operation is only supported in the tape gateway type.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of specified virtual tapes in the virtual tape shelf (VTS). This operation is only supported in the tape gateway type. If a specific TapeARN is not specified, Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.

SELECT
completion_time,
kms_key,
pool_entry_date,
pool_id,
retention_start_date,
retrieved_to,
tape_arn,
tape_barcode,
tape_created_date,
tape_size_in_bytes,
tape_status,
tape_used_in_bytes,
worm
FROM aws.storagegateway.tape_archives
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes the specified virtual tape from the virtual tape shelf (VTS). This operation is only supported in the tape gateway type.

DELETE FROM aws.storagegateway.tape_archives
WHERE region = '{{ region }}' --required
;