describeCachediSCSIVolumes method

Future<DescribeCachediSCSIVolumesOutput> describeCachediSCSIVolumes({
  1. required List<String> volumeARNs,
})

Returns a description of the gateway volumes specified in the request. This operation is only supported in the cached volume gateway types.

The list of gateway volumes in the request must be from one gateway. In the response, AWS Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).

May throw InvalidGatewayRequestException. May throw InternalServerError.

Parameter volumeARNs : An array of strings where each string represents the Amazon Resource Name (ARN) of a cached volume. All of the specified cached volumes must be from the same gateway. Use ListVolumes to get volume ARNs for a gateway.

Implementation

Future<DescribeCachediSCSIVolumesOutput> describeCachediSCSIVolumes({
  required List<String> volumeARNs,
}) async {
  ArgumentError.checkNotNull(volumeARNs, 'volumeARNs');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StorageGateway_20130630.DescribeCachediSCSIVolumes'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VolumeARNs': volumeARNs,
    },
  );

  return DescribeCachediSCSIVolumesOutput.fromJson(jsonResponse.body);
}