View a markdown version of this page

DescribeEntitledRepositories - Amazon Elastic Container Registry Public

DescribeEntitledRepositories

Returns the premium repositories that you're entitled to through your active AWS Marketplace purchases. Amazon ECR looks up your purchases by calling the AWS Marketplace SearchAgreements operation on your behalf, so you need permission for the aws-marketplace:SearchAgreements action in addition to ecr-public:DescribeEntitledRepositories.

Request Syntax

{ "maxResults": number, "nextToken": "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.

maxResults

The maximum number of results that DescribeEntitledRepositories returns in paginated output. You can specify a value between 1 and 1000. If you don't use this parameter, DescribeEntitledRepositories returns up to 100 results. A page can contain fewer than maxResults results, or none, and still return a nextToken. Keep sending requests until nextToken is null.

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 DescribeEntitledRepositories request. Pagination continues from the end of the previous results. A nextToken is valid only for the account that received it. If the request fails with InvalidParameterException because the token no longer matches, start again without a nextToken.

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

Response Syntax

{ "nextToken": "string", "repositories": [ { "entitledViaProductId": "string", "registryAlias": "string", "registryDisplayName": "string", "repositoryArn": "string", "repositoryName": "string", "repositoryUri": "string", "state": "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.

nextToken

The nextToken value to include in a future DescribeEntitledRepositories request. When the results of a DescribeEntitledRepositories 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

repositories

A list of premium repositories that you're entitled to. Each entry is a repository and product pair. A repository that you can access through more than one product appears once for each product, and the same pair can appear on more than one page. Group entries by repositoryArn.

Type: Array of EntitledRepository objects

Array Members: Minimum number of 0 items. Maximum number of 1000 items.

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: