---
title: "POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"
method: POST
path: "/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeRepositories"
---

# POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeRepositories

`POST /#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DescribeRepositories`

Describes image repositories in a registry.

## Query parameters

- `maxResults` string
- `nextToken` string

## Headers

- `X-Amz-Target` 'AmazonEC2ContainerRegistry_V20150921.DescribeRepositories', required

## Request body

- DescribeRepositoriesRequest
  - `registryId` string — The Amazon Web Services account ID associated with the registry that contains the repositories to be described. If you do not specify a registry, the default registry is assumed.
  - `repositoryNames` RepositoryName[] — A list of repositories to describe. If this parameter is omitted, then all repositories in a registry are described.
  - `nextToken` string — <p>The <code>nextToken</code> value returned from a previous paginated <code>DescribeRepositories</code> request where <code>maxResults</code> was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the <code>nextToken</code> value. This value is <code>null</code> when there are no more results to return. This option cannot be used when you specify repositories with <code>repositoryNames</code>.</p> <note> <p>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.</p> </note>
  - `maxResults` integer — The maximum number of repository results returned by <code>DescribeRepositories</code> in paginated output. When this parameter is used, <code>DescribeRepositories</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>DescribeRepositories</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 1000. If this parameter is not used, then <code>DescribeRepositories</code> returns up to 100 results and a <code>nextToken</code> value, if applicable. This option cannot be used when you specify repositories with <code>repositoryNames</code>.

## Response `200`

Success

- DescribeRepositoriesResponse
  - `repositories` Repository[] — A list of repository objects corresponding to valid repositories.
    - `repositoryArn` string — The Amazon Resource Name (ARN) that identifies the repository. The ARN contains the <code>arn:aws:ecr</code> namespace, followed by the region of the repository, Amazon Web Services account ID of the repository owner, repository namespace, and repository name. For example, <code>arn:aws:ecr:region:012345678910:repository/test</code>.
    - `registryId` string — The Amazon Web Services account ID associated with the 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 <code>push</code> and <code>pull</code> operations.
    - `createdAt` string, date-time — The date and time, in JavaScript date format, when the repository was created.
    - `imageTagMutability` 'MUTABLE' | 'IMMUTABLE' — The tag mutability setting for the repository.
    - `imageScanningConfiguration` ImageScanningConfiguration — The image scanning configuration for a repository.
      - `scanOnPush` boolean — The setting that determines whether images are scanned after being pushed to a repository. If set to <code>true</code>, images will be scanned after being pushed. If this parameter is not specified, it will default to <code>false</code> and images will not be scanned unless a scan is manually started with the <a href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_StartImageScan.html">API_StartImageScan</a> API.
    - `encryptionConfiguration` object — The encryption configuration for the repository. This determines how the contents of your repository are encrypted at rest.
      - `encryptionType` 'AES256' | 'KMS', required — <p>The encryption type to use.</p> <p>If you use the <code>KMS</code> encryption type, the contents of the repository will be encrypted using server-side encryption with Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key, which you already created. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting data using server-side encryption with an KMS key stored in Key Management Service (SSE-KMS)</a> in the <i>Amazon Simple Storage Service Console Developer Guide</i>.</p> <p>If you use the <code>AES256</code> encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES-256 encryption algorithm. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3)</a> in the <i>Amazon Simple Storage Service Console Developer Guide</i>.</p>
      - `kmsKey` string — If you use the <code>KMS</code> encryption type, specify the KMS key to use for encryption. The alias, key ID, or full ARN of the KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default Amazon Web Services managed KMS key for Amazon ECR will be used.
  - `nextToken` string — The <code>nextToken</code> value to include in a future <code>DescribeRepositories</code> request. When the results of a <code>DescribeRepositories</code> request exceed <code>maxResults</code>, this value can be used to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.

## Other responses

- `480` — ServerException
- `481` — InvalidParameterException
- `482` — RepositoryNotFoundException

---

[API](https://skmtc.net/aws/apis/ecr.md) · [All operations](https://skmtc.net/aws/apis/ecr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/ecr/versions/965cbb14e137/schema)
