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 | MONTHLYRequired: No
-
- maxResults
-
The maximum number of results that
ListPublisherReportsreturns in paginated output. When you use this parameter,ListPublisherReportsreturns onlymaxResultsresults in a single page along with anextTokenresponse element. To see the remaining results, send anotherListPublisherReportsrequest with the returnednextTokenvalue. You can specify a value between 1 and 1000. If you don't use this parameter,ListPublisherReportsreturns up to 100 results and anextTokenvalue, if applicable. A page can contain fewer thanmaxResultsreports, so usenextTokento check for more.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1000.
Required: No
- nextToken
-
The
nextTokenvalue that's returned from a previous paginatedListPublisherReportsrequest. Pagination continues from the end of the previous results. You must specify the samereportTypeandgranularityvalues as the request that returned the token; otherwise, the request fails withInvalidParameterException.NoteThis 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 | TRENDSRequired: 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
nextTokenvalue to include in a futureListPublisherReportsrequest. When the results of aListPublisherReportsrequest exceedmaxResults, you can use this value to retrieve the next page of results. If there are no more results to return, this value isnull.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: