StorageGateway / Client / cancel_archival

cancel_archival#

StorageGateway.Client.cancel_archival(**kwargs)#

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated. This operation is only supported in the tape gateway type.

See also: AWS API Documentation

Request Syntax

response = client.cancel_archival(
    GatewayARN='string',
    TapeARN='string'
)
Parameters:
  • GatewayARN (string) –

    [REQUIRED]

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

  • TapeARN (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving for.

Return type:

dict

Returns:

Response Syntax

{
    'TapeARN': 'string'
}

Response Structure

  • (dict) –

    CancelArchivalOutput

    • TapeARN (string) –

      The Amazon Resource Name (ARN) of the virtual tape for which archiving was canceled.

Exceptions

Examples

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.

response = client.cancel_archival(
    GatewayARN='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B',
    TapeARN='arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4',
)

print(response)

Expected Output:

{
    'TapeARN': 'arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4',
    'ResponseMetadata': {
        '...': '...',
    },
}