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
/
Informs Amazon ECR that the image layer upload is complete for a specified public registry, repository name, and upload ID. You can optionally provide a sha256 digest of the image layer for data validation purposes.
When an image is pushed, the CompleteLayerUpload API is called once for each new image layer to verify that the upload is complete.
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",
    "uploadId": "string",
    "layerDigests": []
}'
Response Response Example
200 - Example 1
{
    "registryId": "string",
    "repositoryName": "string",
    "uploadId": "string",
    "layerDigest": "string"
}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
registryId
string 
optional
The Amazon Web Services account ID, or registry alias, associated with the registry where layers are uploaded. If you do not specify a registry, the default public registry is assumed.
>= 2 characters<= 50 characters
repositoryName
string 
required
The name of the repository in a public registry to associate with the image layer.
>= 2 characters<= 205 characters
Match pattern:
(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*
uploadId
string 
required
The upload ID from a previous InitiateLayerUpload operation to associate with the image layer.
Match pattern:
[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
layerDigests
array[string]
required
The sha256 digest of the image layer.
>= 1 items<= 100 items
Examples

Responses

🟢200Success
application/json
Body
registryId
string 
optional
The public registry ID that's associated with the request.
Match pattern:
[0-9]{12}
repositoryName
string 
optional
The repository name that's associated with the request.
>= 2 characters<= 205 characters
Match pattern:
(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*
uploadId
string 
optional
The upload ID that's associated with the layer.
Match pattern:
[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}
layerDigest
string 
optional
The sha256 digest of the image layer.
Match pattern:
[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+
🟠480ServerException
🟠481InvalidParameterException
🟠482RepositoryNotFoundException
🟠483UploadNotFoundException
🟠484InvalidLayerException
🟠485LayerPartTooSmallException
🟠486LayerAlreadyExistsException
🟠487EmptyUploadException
🟠488RegistryNotFoundException
🟠489UnsupportedCommandException
Previous
/
Next
/
Built with