Skip to content

Batch Check Layer Availability

ecrpublic_batch_check_layer_availability R Documentation

Checks the availability of one or more image layers that are within a repository in a public registry

Description

Checks the availability of one or more image layers that are within a repository in a public registry. When an image is pushed to a repository, each image layer is checked to verify if it has been uploaded before. If it has been uploaded, then the image layer is skipped.

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_batch_check_layer_availability(registryId, repositoryName,
  layerDigests)

Arguments

registryId

The Amazon Web Services account ID, or registry alias, associated with the public registry that contains the image layers to check. If you do not specify a registry, the default public registry is assumed.

repositoryName

[required] The name of the repository that's associated with the image layers to check.

layerDigests

[required] The digests of the image layers to check.

Value

A list with the following syntax:

list(
  layers = list(
    list(
      layerDigest = "string",
      layerAvailability = "AVAILABLE"|"UNAVAILABLE",
      layerSize = 123,
      mediaType = "string"
    )
  ),
  failures = list(
    list(
      layerDigest = "string",
      failureCode = "InvalidLayerDigest"|"MissingLayerDigest",
      failureReason = "string"
    )
  )
)

Request syntax

svc$batch_check_layer_availability(
  registryId = "string",
  repositoryName = "string",
  layerDigests = list(
    "string"
  )
)