amazonka-storagegateway-2.0: Amazon Storage Gateway SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
     
  • limit :: Maybe Natural

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

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

Instances

Instances details
ToJSON ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.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

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 #

Generic ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumes :: Type -> Type #

Read ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Show ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

NFData ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Methods

rnf :: ListVolumes -> () #

Eq ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Hashable ListVolumes Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type AWSResponse 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" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" 'False) (C1 ('MetaCons "ListVolumes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "gatewayARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "marker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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:

ListVolumes, listVolumes_gatewayARN - Undocumented member.

$sel:limit:ListVolumes', listVolumes_limit - Specifies that the list of volumes returned be limited to the specified number of items.

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.

Request Lenses

listVolumes_limit :: Lens' ListVolumes (Maybe Natural) Source #

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

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.

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
Generic ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumesResponse :: Type -> Type #

Read ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Show ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

NFData ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

Methods

rnf :: ListVolumesResponse -> () #

Eq ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type Rep ListVolumesResponse Source # 
Instance details

Defined in Amazonka.StorageGateway.ListVolumes

type Rep ListVolumesResponse = D1 ('MetaData "ListVolumesResponse" "Amazonka.StorageGateway.ListVolumes" "amazonka-storagegateway-2.0-A8x7b0LCNm33wkCZlwgcSL" '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:

ListVolumes, listVolumesResponse_gatewayARN - Undocumented member.

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