ECRPublic / Client / describe_repositories
describe_repositories#
- ECRPublic.Client.describe_repositories(**kwargs)#
Describes repositories that are in a public registry.
See also: AWS API Documentation
Request Syntax
response = client.describe_repositories( registryId='string', repositoryNames=[ 'string', ], nextToken='string', maxResults=123 )
- Parameters:
registryId (string) – The Amazon Web Services account ID that’s associated with the registry that contains the repositories to be described. If you do not specify a registry, the default public registry is assumed.
repositoryNames (list) –
A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.
(string) –
nextToken (string) –
The
nextTokenvalue that’s returned from a previous paginatedDescribeRepositoriesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. If there are no more results to return, this value isnull. If you specify repositories withrepositoryNames, you can’t use this option.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.
maxResults (integer) – The maximum number of repository results that’s returned by
DescribeRepositoriesin paginated output. When this parameter is used,DescribeRepositoriesonly returnsmaxResultsresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherDescribeRepositoriesrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter isn’t used, thenDescribeRepositoriesreturns up to 100 results and anextTokenvalue, if applicable. If you specify repositories withrepositoryNames, you can’t use this option.
- Return type:
dict
- Returns:
Response Syntax
{ 'repositories': [ { 'repositoryArn': 'string', 'registryId': 'string', 'repositoryName': 'string', 'repositoryUri': 'string', 'createdAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
repositories (list) –
A list of repository objects corresponding to valid repositories.
(dict) –
An object representing a repository.
repositoryArn (string) –
The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the
arn:aws:ecrnamespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example,arn:aws:ecr:region:012345678910:repository/test.registryId (string) –
The Amazon Web Services account ID that’s associated with the public registry that contains the repository.
repositoryName (string) –
The name of the repository.
repositoryUri (string) –
The URI for the repository. You can use this URI for container image
pushandpulloperations.createdAt (datetime) –
The date and time, in JavaScript date format, when the repository was created.
nextToken (string) –
The
nextTokenvalue to include in a futureDescribeRepositoriesrequest. When the results of aDescribeRepositoriesrequest exceedmaxResults, this value can be used to retrieve the next page of results. If there are no more results to return, this value isnull.
Exceptions
ECRPublic.Client.exceptions.ServerExceptionECRPublic.Client.exceptions.InvalidParameterExceptionECRPublic.Client.exceptions.RepositoryNotFoundExceptionECRPublic.Client.exceptions.UnsupportedCommandException