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

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

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

Retrieves the scanning configuration for a registry.

## Headers

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

## Request body

- GetRegistryScanningConfigurationRequest

## Response `200`

Success

- GetRegistryScanningConfigurationResponse
  - `registryId` string — The ID of the registry.
  - `scanningConfiguration` object — The scanning configuration for the registry.
    - `scanType` 'BASIC' | 'ENHANCED' — The type of scanning configured for the registry.
    - `rules` RegistryScanningRule[] — The scanning rules associated with the registry.
      - `scanFrequency` 'SCAN_ON_PUSH' | 'CONTINUOUS_SCAN' | 'MANUAL', required — The frequency that scans are performed at for a private registry. When the <code>ENHANCED</code> scan type is specified, the supported scan frequencies are <code>CONTINUOUS_SCAN</code> and <code>SCAN_ON_PUSH</code>. When the <code>BASIC</code> scan type is specified, the <code>SCAN_ON_PUSH</code> and <code>MANUAL</code> scan frequencies are supported.
      - `repositoryFilters` ScanningRepositoryFilter[], required — The repository filters associated with the scanning configuration for a private registry.
        - `filter` string, required — The filter to use when scanning.
        - `filterType` 'WILDCARD', required — The type associated with the filter.

## Other responses

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

---

[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)
