AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the BatchGetImage operation. Gets detailed information for an image. Images are specified with either an imageTag or imageDigest.

When an image is pulled, the BatchGetImage API is called once to retrieve the image manifest.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ECR.AmazonECRRequest
      Amazon.ECR.Model.BatchGetImageRequest

Namespace: Amazon.ECR.Model
Assembly: AWSSDK.ECR.dll
Version: 3.x.y.z

Syntax

C#
public class BatchGetImageRequest : AmazonECRRequest
         IAmazonWebServiceRequest

The BatchGetImageRequest type exposes the following members

Constructors

NameDescription
Public Method BatchGetImageRequest()

Properties

NameTypeDescription
Public Property AcceptedMediaTypes System.Collections.Generic.List<System.String>

Gets and sets the property AcceptedMediaTypes.

The accepted media types for the request.

Valid values: application/vnd.docker.distribution.manifest.v1+json | application/vnd.docker.distribution.manifest.v2+json | application/vnd.oci.image.manifest.v1+json

Public Property ImageIds System.Collections.Generic.List<Amazon.ECR.Model.ImageIdentifier>

Gets and sets the property ImageIds.

A list of image ID references that correspond to images to describe. The format of the imageIds reference is imageTag=tag or imageDigest=digest.

Public Property RegistryId System.String

Gets and sets the property RegistryId.

The Amazon Web Services account ID associated with the registry that contains the images to describe. If you do not specify a registry, the default registry is assumed.

Public Property RepositoryName System.String

Gets and sets the property RepositoryName.

The repository that contains the images to describe.

Examples

This example obtains information for an image with a specified image digest ID from the repository named ubuntu in the current account.

To obtain multiple images in a single request


var client = new AmazonECRClient();
var response = client.BatchGetImage(new BatchGetImageRequest 
{
    ImageIds = new List<ImageIdentifier> {
        new ImageIdentifier { ImageTag = "precise" }
    },
    RepositoryName = "ubuntu"
});

List<ImageFailure> failures = response.Failures;
List<Image> images = response.Images;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5