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
/
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 (about 20MB). The UploadLayerPart API is called once for each new image layer part.
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",
    "partFirstByte": 0,
    "partLastByte": 0,
    "layerPartBlob": "string"
}'
Response Response Example
200 - Example 1
{
    "registryId": "string",
    "repositoryName": "string",
    "uploadId": "string",
    "lastByteReceived": 0
}

Request

Header Params
X-Amz-Target
string 
required
Body Params application/json
registryId
string 
optional
The Amazon Web Services account ID, or registry alias, that's associated with the registry that you're uploading layer parts to. 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 that you're uploading layer parts to.
>= 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 layer part upload.
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}
partFirstByte
integer 
required
The position of the first byte of the layer part witin the overall image layer.
>= 0
partLastByte
integer 
required
The position of the last byte of the layer part within the overall image layer.
>= 0
layerPartBlob
string 
required
The base64-encoded layer part payload.
>= 0 characters<= 20971520 characters
Examples

Responses

🟢200Success
application/json
Body
registryId
string 
optional
The 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 request.
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}
lastByteReceived
integer 
optional
The integer value of the last byte that's received in the request.
>= 0
🟠480ServerException
🟠481InvalidParameterException
🟠482InvalidLayerPartException
🟠483RepositoryNotFoundException
🟠484UploadNotFoundException
🟠485LimitExceededException
🟠486RegistryNotFoundException
🟠487UnsupportedCommandException
Modified at 2023-08-15 05:55:25
Previous
/
Built with