v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Deletes the repository policy associated with the specified repository.

post/#X-Amz-Target=AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.DeleteRepositoryPolicy' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry that contains the repository policy to delete. If you do not specify a registry, the default registry is assumed.

repositoryNamestring required

The name of the repository that is associated with the repository policy to delete.

Response

Success

registryIdstring

The registry ID associated with the request.

repositoryNamestring

The repository name associated with the request.

policyTextstring

The JSON repository policy that was deleted from the repository.

Example response

{
  "policyText": "{ ... }",
  "registryId": 12345678901,
  "repositoryName": "ubuntu"
}