describe_tapes
async
¶
describe_tapes(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
tape_ar_ns: Optional[TapeARNs] = None,
marker: Optional[Marker] = None,
limit: Optional[PositiveIntObject] = None,
) -> DescribeTapesOutput
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.
Parameters:
-
tape_ar_ns(Optional[TapeARNs], default:None) –Specifies one or more unique Amazon Resource Names (ARNs) that represent the virtual tapes you want to describe. If this parameter is not specified, Tape gateway returns a description of all virtual tapes associated with the specified gateway.
-
marker(Optional[Marker], default:None) –A marker value, obtained in a previous call to
DescribeTapes. This marker indicates which page of results to retrieve.If not specified, the first page of results is retrieved.
-
limit(Optional[PositiveIntObject], default:None) –Specifies that the number of virtual tapes described be limited to the specified number.
Amazon Web Services may impose its own limit, if this field is not set.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe virtual tape(s) associated with gateway 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.
>>> await client.describe_tapes(gateway_arn='arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B', tape_ar_ns=['arn:aws:storagegateway:us-east-1:999999999999:tape/TEST04A2A1', 'arn:aws:storagegateway:us-east-1:999999999999:tape/TEST05A2A0'], marker='1', limit=2)
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 | |