Amazon Elastic Container Registry Public
  1. Root
Amazon Elastic Container Registry Public
  • Root
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
    • /
      POST
  1. Root

/

POST
/
Applies a repository policy to the specified public repository to control access permissions. For more information, see Amazon ECR Repository Policies in the Amazon Elastic Container Registry User Guide.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "registryId": "string",
    "repositoryName": "string",
    "policyText": "string",
    "force": true
}'
Response Response Example
200 - Example 1
{
    "registryId": "string",
    "repositoryName": "string",
    "policyText": "string"
}

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟠480ServerException
🟠481InvalidParameterException
🟠482RepositoryNotFoundException
🟠483UnsupportedCommandException
Modified at 2023-08-15 05:55:25
Previous
/
Next
/
Built with