Skip to content

Upload Layer Part

ecrpublic_upload_layer_part R Documentation

Uploads an image layer part to Amazon ECR

Description

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.

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.

Usage

ecrpublic_upload_layer_part(registryId, repositoryName, uploadId,
  partFirstByte, partLastByte, layerPartBlob)

Arguments

registryId

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.

repositoryName

[required] The name of the repository that you're uploading layer parts to.

uploadId

[required] The upload ID from a previous initiate_layer_upload operation to associate with the layer part upload.

partFirstByte

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

partLastByte

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

layerPartBlob

[required] The base64-encoded layer part payload.

Value

A list with the following syntax:

list(
  registryId = "string",
  repositoryName = "string",
  uploadId = "string",
  lastByteReceived = 123
)

Request syntax

svc$upload_layer_part(
  registryId = "string",
  repositoryName = "string",
  uploadId = "string",
  partFirstByte = 123,
  partLastByte = 123,
  layerPartBlob = raw
)