// Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN.
// The response includes only the volume ARNs. If you want additional volume
// information, use the DescribeStorediSCSIVolumes or the
// DescribeCachediSCSIVolumes API. The operation supports pagination. By default,
// the operation returns a maximum of up to 100 volumes. You can optionally specify
// the Limit field in the body to limit the number of volumes in the response. If
// the number of volumes 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 volumes. This operation is only supported in
// the cached volume and stored volume gateway types.
Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN.
The response includes only the volume ARNs. If you want additional volume
information, use the DescribeStorediSCSIVolumes or the
DescribeCachediSCSIVolumes API. The operation supports pagination. By default,
the operation returns a maximum of up to 100 volumes. You can optionally specify
the Limit field in the body to limit the number of volumes in the response. If
the number of volumes 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 volumes. This operation is only supported in
the cached volume and stored volume gateway types.
// Lists the iSCSI stored volumes of a gateway . Results are sorted by volume ARN . // The response includes only the volume ARNs . If you want additional volume // information use the DescribeStorediSCSIVolumes or the // DescribeCachediSCSIVolumes API . The operation supports pagination . By default // the operation returns a maximum of up to 100 volumes . You can optionally specify // the Limit field in the body to limit the number of volumes in the response . If // the number of volumes 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 volumes . This operation is only supported in // the cached volume and stored volume gateway types .
func (c *Client) ListVolumes(ctx context.Context, params *ListVolumesInput, optFns ...func(*Options)) (*ListVolumesOutput, error) {
	if params == nil {
		params = &ListVolumesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListVolumes", params, optFns, addOperationListVolumesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListVolumesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListVolumes ( ctx context . Context , params * ListVolumesInput , optFns ... func ( * Options ) ) ( * ListVolumesOutput , error ) { if params == nil { params = & ListVolumesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListVolumesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListVolumesOutput ) out . ResultMetadata = metadata return out , nil }
Lists the iSCSI stored volumes of a gateway.
Lists the iSCSI stored volumes of a gateway .