GetCredentialReport - AWS Identity and Access Management


Retrieves a credential report for the AWS account. For more information about the credential report, see Getting credential reports in the IAM User Guide.

Response Syntax

{ "Content": blob, "GeneratedTime": number, "ReportFormat": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


Contains the credential report. The report is Base64-encoded.

Type: Base64-encoded binary data object


The date and time when the credential report was created, in ISO 8601 date-time format.

Type: Timestamp


The format (MIME type) of the credential report.

Type: String

Valid Values: text/csv


For information about the errors that are common to all actions, see Common Errors.


The request was rejected because the most recent credential report has expired. To generate a new credential report, use GenerateCredentialReport. For more information about credential report expiration, see Getting credential reports in the IAM User Guide.

HTTP Status Code: 400


The request was rejected because the credential report does not exist. To generate a credential report, use GenerateCredentialReport.

HTTP Status Code: 400


The request was rejected because the credential report is still being generated.

HTTP Status Code: 400


The request processing has failed because of an unknown error, exception or failure.

HTTP Status Code: 400



This example illustrates one usage of GetCredentialReport.

Sample Request &Version=2010-05-08 &AUTHPARAMS

Sample Response

<GetCredentialReportResponse xmlns=""> <GetCredentialReportResult> <Content>BASE-64 ENCODED FILE CONTENTS</Content> <ReportFormat>text/csv</ReportFormat> <GeneratedTime>2014-08-28T21:42:50Z</GeneratedTime> </GetCredentialReportResult> <ResponseMetadata> <RequestId>29f47818-99f5-11e1-a4c3-27EXAMPLE804</RequestId> </ResponseMetadata> </GetCredentialReportResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: