amazonka-storagegateway-1.6.1: Amazon Storage Gateway SDK.

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

Network.AWS.StorageGateway.ListVolumes

Contents

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

listVolumes :: ListVolumes Source #

Creates a value of ListVolumes with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lvGatewayARN - Undocumented member.
  • lvMarker - 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.
  • lvLimit - Specifies that the list of volumes returned be limited to the specified number of items.

data ListVolumes Source #

A JSON object that contains one or more of the following fields:

  • 'ListVolumesInput$Limit'
  • 'ListVolumesInput$Marker'

See: listVolumes smart constructor.

Instances
Eq ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Data ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListVolumes -> c ListVolumes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListVolumes #

toConstr :: ListVolumes -> Constr #

dataTypeOf :: ListVolumes -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListVolumes) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListVolumes) #

gmapT :: (forall b. Data b => b -> b) -> ListVolumes -> ListVolumes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListVolumes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListVolumes -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListVolumes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListVolumes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListVolumes -> m ListVolumes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListVolumes -> m ListVolumes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListVolumes -> m ListVolumes #

Read ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Show ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Generic ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumes :: Type -> Type #

Hashable ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

ToJSON ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

AWSPager ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

AWSRequest ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Associated Types

type Rs ListVolumes :: Type #

ToHeaders ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Methods

toHeaders :: ListVolumes -> [Header] #

ToPath ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

ToQuery ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

NFData ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Methods

rnf :: ListVolumes -> () #

type Rep ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

type Rep ListVolumes = D1 (MetaData "ListVolumes" "Network.AWS.StorageGateway.ListVolumes" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "ListVolumes'" PrefixI True) (S1 (MetaSel (Just "_lvGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lvMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lvLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))
type Rs ListVolumes Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Request Lenses

lvGatewayARN :: Lens' ListVolumes (Maybe Text) Source #

Undocumented member.

lvMarker :: 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.

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

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

Destructuring the Response

listVolumesResponse Source #

Creates a value of ListVolumesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ListVolumesResponse Source #

See: listVolumesResponse smart constructor.

Instances
Eq ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Data ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListVolumesResponse -> c ListVolumesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListVolumesResponse #

toConstr :: ListVolumesResponse -> Constr #

dataTypeOf :: ListVolumesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListVolumesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListVolumesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListVolumesResponse -> ListVolumesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListVolumesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListVolumesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListVolumesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListVolumesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListVolumesResponse -> m ListVolumesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListVolumesResponse -> m ListVolumesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListVolumesResponse -> m ListVolumesResponse #

Read ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Show ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Generic ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Associated Types

type Rep ListVolumesResponse :: Type -> Type #

NFData ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

Methods

rnf :: ListVolumesResponse -> () #

type Rep ListVolumesResponse Source # 
Instance details

Defined in Network.AWS.StorageGateway.ListVolumes

type Rep ListVolumesResponse = D1 (MetaData "ListVolumesResponse" "Network.AWS.StorageGateway.ListVolumes" "amazonka-storagegateway-1.6.1-8r5RVaLfJcl46lpEVK6Ktc" False) (C1 (MetaCons "ListVolumesResponse'" PrefixI True) ((S1 (MetaSel (Just "_lvrsGatewayARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lvrsMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_lvrsVolumeInfos") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [VolumeInfo])) :*: S1 (MetaSel (Just "_lvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

lvrsResponseStatus :: Lens' ListVolumesResponse Int Source #

  • - | The response status code.