View a markdown version of this page

ListPublisherReports - Amazon Elastic Container Registry Public

ListPublisherReports

Lists the publisher reports for your public registry that were created in the last 365 days. Each report is a compressed CSV file. Reports include images in your premium repositories and in free repositories that are associated with a premium repository.

Request Syntax

{ "granularity": "string", "maxResults": number, "nextToken": "string", "reportType": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

granularity

The time period that each report covers. If you don't specify a granularity, reports of all granularities are listed. Valid values:

  • WEEKLY: Each report covers one week, from Monday to Sunday.

  • MONTHLY: Each report covers one calendar month.

Type: String

Valid Values: WEEKLY | MONTHLY

Required: No

maxResults

The maximum number of results that ListPublisherReports returns in paginated output. When you use this parameter, ListPublisherReports returns only maxResults results in a single page along with a nextToken response element. To see the remaining results, send another ListPublisherReports request with the returned nextToken value. You can specify a value between 1 and 1000. If you don't use this parameter, ListPublisherReports returns up to 100 results and a nextToken value, if applicable. A page can contain fewer than maxResults reports, so use nextToken to check for more.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 1000.

Required: No

nextToken

The nextToken value that's returned from a previous paginated ListPublisherReports request. Pagination continues from the end of the previous results. You must specify the same reportType and granularity values as the request that returned the token; otherwise, the request fails with InvalidParameterException.

Note

This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.

Type: String

Required: No

reportType

The type of report to list. If you don't specify a type, reports of all types are listed. Valid values:

  • SUMMARY: The number of pulls and version checks for each image.

  • TRENDS: The same counts for each image, broken down by the country, cloud provider, client, domain and company of the puller.

Type: String

Valid Values: SUMMARY | TRENDS

Required: No

Response Syntax

{ "nextToken": "string", "reports": [ { "createdAt": number, "granularity": "string", "period": { "endDate": "string", "startDate": "string" }, "reportId": "string", "reportType": "string", "sizeInBytes": number } ] }

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.

nextToken

The nextToken value to include in a future ListPublisherReports request. When the results of a ListPublisherReports request exceed maxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value is null.

Type: String

reports

A list of publisher reports.

Type: Array of PublisherReport objects

Errors

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

InvalidParameterException

The specified parameter is invalid. Review the available parameters for the API request.

message

The error message associated with the exception.

HTTP Status Code: 400

LimitExceededException

The operation didn't succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR Public service quotas in the Amazon Elastic Container Registry Public User Guide.

message

The error message associated with the exception.

HTTP Status Code: 400

ServerException

These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact AWS Support.

message

The error message associated with the exception.

HTTP Status Code: 500

UnsupportedCommandException

The action isn't supported in this Region. Check that the action is available in the AWS Region that you're using, and try again in a supported Region.

message

The error message associated with the exception.

HTTP Status Code: 400

See Also

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