v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1441293181.2 KB

Uploads an image layer part to Amazon ECR.

When an image is pushed, each new image layer is uploaded in parts. The maximum size of each image layer part can be 20971520 bytes (or about 20MB). The UploadLayerPart API is called once per each new image layer part.

This operation is used by the Amazon ECR proxy and is not generally used by customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

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

Headers

X-Amz-Target'AmazonEC2ContainerRegistry_V20150921.UploadLayerPart' required

Request body

registryIdstring

The Amazon Web Services account ID associated with the registry to which you are uploading layer parts. If you do not specify a registry, the default registry is assumed.

repositoryNamestring required

The name of the repository to which you are uploading layer parts.

uploadIdstring required

The upload ID from a previous <a>InitiateLayerUpload</a> operation to associate with the layer part upload.

partFirstByteinteger required

The position of the first byte of the layer part witin the overall image layer.

partLastByteinteger required

The position of the last byte of the layer part within the overall image layer.

layerPartBlobstring required

The base64-encoded layer part payload.

Response

Success

registryIdstring

The registry ID associated with the request.

repositoryNamestring

The repository name associated with the request.

uploadIdstring

The upload ID associated with the request.

lastByteReceivedinteger

The integer value of the last byte received in the request.