describe_cache
¶
describe_cache(
gateway_arn: GatewayARN,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
) -> DescribeCacheOutput
Returns information about the cache of a gateway. This operation is only supported in the cached volume, tape, and file gateway types.
The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.
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 cache information Returns information about the cache of a gateway.
>>> client.describe_cache(gateway_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B')