amazonka-storagegateway-1.3.1: Amazon Storage Gateway SDK.

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

Network.AWS.StorageGateway.DescribeChapCredentials

Contents

Description

This operation returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

See: AWS API Reference for DescribeChapCredentials.

Synopsis

Creating a Request

describeChapCredentials Source

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

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

Request Lenses

dccTargetARN :: Lens' DescribeChapCredentials Text Source

The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.

Destructuring the Response

describeChapCredentialsResponse Source

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

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

Response Lenses

dccrsChapCredentials :: Lens' DescribeChapCredentialsResponse [ChapInfo] Source

An array of ChapInfo objects that represent CHAP credentials. Each object in the array contains CHAP credential information for one target-initiator pair. If no CHAP credentials are set, an empty array is returned. CHAP credential information is provided in a JSON object with the following fields:

  • InitiatorName: The iSCSI initiator that connects to the target.
  • SecretToAuthenticateInitiator: The secret key that the initiator (for example, the Windows client) must provide to participate in mutual CHAP with the target.
  • SecretToAuthenticateTarget: The secret key that the target must provide to participate in mutual CHAP with the initiator (e.g. Windows client).
  • TargetARN: The Amazon Resource Name (ARN) of the storage volume.