Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

[ aws . storagegateway ]

create-tape-with-barcode

Description

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape. A barcode is unique and can not be reused if it has already been used on a tape . This applies to barcodes used on deleted tapes. This operation is only supported in the tape gateway. architecture.

Note

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the add-cache operation to add cache storage to a gateway.

See also: AWS API Documentation

Synopsis

  create-tape-with-barcode
--gateway-arn <value>
--tape-size-in-bytes <value>
--tape-barcode <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--gateway-arn (string)

The unique Amazon Resource Name (ARN) that represents the gateway to associate the virtual tape with. Use the list-gateways operation to return a list of gateways for your account and region.

--tape-size-in-bytes (long)

The size, in bytes, of the virtual tape that you want to create.

Note

The size must be aligned by gigabyte (1024*1024*1024 byte).

--tape-barcode (string)

The barcode that you want to assign to the tape.

Note

Barcodes cannot be reused. This includes barcodes used for tapes that have been deleted.

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

Output

TapeARN -> (string)

A unique Amazon Resource Name (ARN) that represents the virtual tape that was created.