listImages
inline suspend fun EcrClient.listImages(crossinline block: ListImagesRequest.Builder.() -> Unit): ListImagesResponse
Lists all the image IDs for the specified repository.
You can filter images based on whether or not they are tagged by using the tagStatus
filter and specifying either TAGGED
, UNTAGGED
or ANY
. For example, you can filter your results to return only UNTAGGED
images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your results to return only TAGGED
images to list all of the tags in your repository.
Samples
fun main() {
//sampleStart
// This example lists all of the images in the repository named ubuntu in the default registry in the
// current account.
val resp = ecrClient.listImages {
repositoryName = "ubuntu"
}
//sampleEnd
}