list_publisher_reports
¶
list_publisher_reports(
*,
config_overrides: Optional[ECRPUBLICClientConfig] = None,
report_type: Optional[PublisherReportType] = None,
granularity: Optional[PublisherReportGranularity] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListPublisherReportsResponse
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.
Parameters:
-
report_type(Optional[PublisherReportType], default:None) –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.
-
-
granularity(Optional[PublisherReportGranularity], default:None) –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.
-
-
max_results(Optional[MaxResults], default:None) –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. -
next_token(Optional[NextToken], default:None) –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.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.
Raises:
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
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.
-
ServerException–These errors are usually caused by a server-side issue. Retry the request. If it continues to fail, contact Amazon Web Services Support.
-
UnsupportedCommandException–The action isn't supported in this Region. Check that the action is available in the Amazon Web Services Region that you're using, and try again in a supported Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list the monthly summary reports for a registry This example lists the monthly summary publisher reports that are available for your public registry.
Source code in docs_src/capo_ecr_public/_services/ecrpublic.py
2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 | |