libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.StorageGateway.ListVolumes

Description

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

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.

Constructors

ListVolumes' 

Fields

  • gatewayARN :: Maybe Text
     
  • marker :: Maybe Text

    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.

  • limit :: Maybe Natural

    Specifies that the list of volumes returned be limited to the specified number of items.

Instances

Instances details
Eq ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Read ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Show ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Generic ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumes :: Type -> Type #

NFData ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Methods

rnf :: ListVolumes -> () #

Hashable ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

ToJSON ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

AWSPager ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

AWSRequest ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Associated Types

type AWSResponse ListVolumes #

ToHeaders ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Methods

toHeaders :: ListVolumes -> [Header] #

ToPath ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

ToQuery ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type Rep ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type Rep ListVolumes = D1 ('MetaData "ListVolumes" "Amazonka.StorageGateway.ListVolumes" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListVolumes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

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_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.

Constructors

ListVolumesResponse' 

Fields

  • gatewayARN :: Maybe Text
     
  • marker :: Maybe Text

    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.

  • volumeInfos :: Maybe [VolumeInfo]

    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 "[]".

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Read ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Show ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Generic ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumesResponse :: Type -> Type #

NFData ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Methods

rnf :: ListVolumesResponse -> () #

type Rep ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type Rep ListVolumesResponse = D1 ('MetaData "ListVolumesResponse" "Amazonka.StorageGateway.ListVolumes" "libZSservicesZSamazonka-storagegatewayZSamazonka-storagegateway" 'False) (C1 ('MetaCons "ListVolumesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "volumeInfos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [VolumeInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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 "[]".