delete_chap_credentials
async
¶
delete_chap_credentials(
target_arn: TargetARN,
initiator_name: IqnName,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
) -> DeleteChapCredentialsOutput
Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair. This operation is supported in volume and tape gateway types.
Parameters:
-
target_arn(TargetARN) –The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes operation to return to retrieve the TargetARN for specified VolumeARN.
-
initiator_name(IqnName) –The iSCSI initiator that connects to the target.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To delete CHAP credentials Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.
>>> await client.delete_chap_credentials(target_arn='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume', initiator_name='iqn.1991-05.com.microsoft:computername.domain.example.com')