Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
This operation returns paginated results.
Synopsis
- data ListVolumes = ListVolumes' {}
- newListVolumes :: ListVolumes
- listVolumes_gatewayARN :: Lens' ListVolumes (Maybe Text)
- listVolumes_marker :: Lens' ListVolumes (Maybe Text)
- listVolumes_limit :: Lens' ListVolumes (Maybe Natural)
- data ListVolumesResponse = ListVolumesResponse' {
- gatewayARN :: Maybe Text
- marker :: Maybe Text
- volumeInfos :: Maybe [VolumeInfo]
- httpStatus :: Int
- newListVolumesResponse :: Int -> ListVolumesResponse
- listVolumesResponse_gatewayARN :: Lens' ListVolumesResponse (Maybe Text)
- listVolumesResponse_marker :: Lens' ListVolumesResponse (Maybe Text)
- listVolumesResponse_volumeInfos :: Lens' ListVolumesResponse (Maybe [VolumeInfo])
- listVolumesResponse_httpStatus :: Lens' ListVolumesResponse Int
Creating a Request
data ListVolumes Source #
A JSON object that contains one or more of the following fields:
- ListVolumesInput$Limit
- ListVolumesInput$Marker
See: newListVolumes
smart constructor.
ListVolumes' | |
|
Instances
newListVolumes :: ListVolumes Source #
Create a value of ListVolumes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gatewayARN:ListVolumes'
, listVolumes_gatewayARN
- Undocumented member.
$sel:marker:ListVolumes'
, listVolumes_marker
- A string that indicates the position at which to begin the returned list
of volumes. Obtain the marker from the response of a previous List iSCSI
Volumes request.
$sel:limit:ListVolumes'
, listVolumes_limit
- Specifies that the list of volumes returned be limited to the specified
number of items.
Request Lenses
listVolumes_gatewayARN :: Lens' ListVolumes (Maybe Text) Source #
Undocumented member.
listVolumes_marker :: Lens' ListVolumes (Maybe Text) Source #
A string that indicates the position at which to begin the returned list of volumes. Obtain the marker from the response of a previous List iSCSI Volumes request.
listVolumes_limit :: Lens' ListVolumes (Maybe Natural) Source #
Specifies that the list of volumes returned be limited to the specified number of items.
Destructuring the Response
data ListVolumesResponse Source #
A JSON object containing the following fields:
- ListVolumesOutput$Marker
- ListVolumesOutput$VolumeInfos
See: newListVolumesResponse
smart constructor.
ListVolumesResponse' | |
|
Instances
newListVolumesResponse Source #
Create a value of ListVolumesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:gatewayARN:ListVolumes'
, listVolumesResponse_gatewayARN
- Undocumented member.
$sel:marker:ListVolumes'
, listVolumesResponse_marker
- Use the marker in your next request to continue pagination of iSCSI
volumes. If there are no more volumes to list, this field does not
appear in the response body.
$sel:volumeInfos:ListVolumesResponse'
, listVolumesResponse_volumeInfos
- An array of VolumeInfo objects, where each object describes an iSCSI
volume. If no volumes are defined for the gateway, then VolumeInfos
is
an empty array "[]".
$sel:httpStatus:ListVolumesResponse'
, listVolumesResponse_httpStatus
- The response's http status code.
Response Lenses
listVolumesResponse_gatewayARN :: Lens' ListVolumesResponse (Maybe Text) Source #
Undocumented member.
listVolumesResponse_marker :: Lens' ListVolumesResponse (Maybe Text) Source #
Use the marker in your next request to continue pagination of iSCSI volumes. If there are no more volumes to list, this field does not appear in the response body.
listVolumesResponse_volumeInfos :: Lens' ListVolumesResponse (Maybe [VolumeInfo]) Source #
An array of VolumeInfo objects, where each object describes an iSCSI
volume. If no volumes are defined for the gateway, then VolumeInfos
is
an empty array "[]".
listVolumesResponse_httpStatus :: Lens' ListVolumesResponse Int Source #
The response's http status code.