There are more AWS SDK examples available in the AWS Doc SDK Examples
Use DescribeImages
with an AWS SDK or CLI
The following code examples show how to use DescribeImages
.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example:
- AWS CLI
-
To describe an image in a repository
The folowing
describe-images
example displays details about an image in thecluster-autoscaler
repository with the tagv1.13.6
.aws ecr describe-images \ --repository-name
cluster-autoscaler
\ --image-idsimageTag=v1.13.6
Output:
{ "imageDetails": [ { "registryId": "012345678910", "repositoryName": "cluster-autoscaler", "imageDigest": "sha256:4a1c6567c38904384ebc64e35b7eeddd8451110c299e3368d2210066487d97e5", "imageTags": [ "v1.13.6" ], "imageSizeInBytes": 48318255, "imagePushedAt": 1565128275.0 } ] }
-
For API details, see DescribeImages
in AWS CLI Command Reference.
-