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.
Namespace: Amazon.ECR.Model
Assembly: AWSSDK.ECR.dll
Version: 3.x.y.z
public class BatchGetImageRequest : AmazonECRRequest IAmazonWebServiceRequest
The BatchGetImageRequest type exposes the following members
Name | Description | |
---|---|---|
BatchGetImageRequest() |
Name | Type | Description | |
---|---|---|---|
AcceptedMediaTypes | System.Collections.Generic.List<System.String> |
Gets and sets the property AcceptedMediaTypes. The accepted media types for the request.
Valid values: |
|
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 |
|
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. |
|
RepositoryName | System.String |
Gets and sets the property RepositoryName. The repository that contains the images to describe. |
This example obtains information for an image with a specified image digest ID from the repository named ubuntu in the current account.
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;
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5