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
/
Associates the specified tags to a resource with the specified resourceArn. If existing tags on a resource aren't specified in the request parameters, they aren't changed. When a resource is deleted, the tags associated with that resource are also deleted.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/' \
--header 'X-Amz-Target;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "resourceArn": "string",
    "tags": []
}'
Response Response Example
200 - Example 1
{}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
resourceArn
string 
required
The Amazon Resource Name (ARN) of the resource to add tags to. Currently, the supported resource is an Amazon ECR Public repository.
>= 1 characters<= 2048 characters
tags
array[object (Tag) {2}] 
required
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
>= 0 items<= 200 items
Key
string 
optional
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
>= 1 characters<= 128 characters
Value
string 
optional
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
>= 0 characters<= 256 characters
Examples

Responses

🟢200Success
application/json
Body
object {0}
🟠480InvalidParameterException
🟠481InvalidTagParameterException
🟠482TooManyTagsException
🟠483RepositoryNotFoundException
🟠484UnsupportedCommandException
🟠485ServerException
Modified at 2023-08-15 05:55:25
Previous
/
Next
/
Built with