describeTapes

Returns a description of virtual tapes that correspond to the specified Amazon Resource Names (ARNs). If TapeARN is not specified, returns a description of the virtual tapes associated with the specified gateway. This operation is only supported for the tape gateway type.

The operation supports pagination. By default, the operation returns a maximum of up to 100 tapes. You can optionally specify the Limit field in the body to limit the number of tapes in the response. If the number of tapes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of tapes.

Samples


fun main() { 
   //sampleStart 
   // Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is
// not specified, returns a description of all virtual tapes.
val resp = storageGatewayClient.describeTapes {
    gatewayArn = "arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"
    tapeArns = listOf<String>(
        "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST04A2A1",
        "arn:aws:storagegateway:us-east-1:999999999999:tape/TEST05A2A0"
    )
    marker = "1"
    limit = 2
} 
   //sampleEnd
}