describe_images
async
¶
describe_images(
repository_name: RepositoryName,
*,
config_overrides: Optional[AsyncECRPUBLICClientConfig] = None,
registry_id: Optional[RegistryId] = None,
image_ids: Optional[ImageIdentifierList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> DescribeImagesResponse
Returns metadata that's related to the images in a repository in a public registry.
Beginning with Docker version 1.9, the Docker client compresses image layers before pushing them to a V2 Docker registry. The output of the docker images command shows the uncompressed image size. Therefore, it might return a larger image size than the image sizes that are returned by DescribeImages.
Parameters:
-
registry_id(Optional[RegistryId], default:None) –The Amazon Web Services account ID that's associated with the public registry that contains the repository where images are described. If you do not specify a registry, the default public registry is assumed.
-
repository_name(RepositoryName) –The repository that contains the images to describe.
-
image_ids(Optional[ImageIdentifierList], default:None) –The list of image IDs for the requested repository.
-
next_token(Optional[NextToken], default:None) –The
nextTokenvalue that's returned from a previous paginatedDescribeImagesrequest wheremaxResultswas used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextTokenvalue. If there are no more results to return, this value isnull. If you specify images withimageIds, you can't use this option. -
max_results(Optional[MaxResults], default:None) –The maximum number of repository results that's returned by
DescribeImagesin paginated output. When this parameter is used,DescribeImagesonly returnsmaxResultsresults in a single page along with anextTokenresponse element. You can see the remaining results of the initial request by sending anotherDescribeImagesrequest with the returnednextTokenvalue. This value can be between 1 and 1000. If this parameter isn't used, thenDescribeImagesreturns up to 100 results and anextTokenvalue, if applicable. If you specify images withimageIds, you can't use this option.
Raises:
-
ImageNotFoundException–The image requested doesn't exist in the specified repository.
-
InvalidParameterException–The specified parameter is invalid. Review the available parameters for the API request.
-
RepositoryNotFoundException–The specified repository can't be found. Check the spelling of the specified repository and ensure that you're performing operations on the correct registry.
-
ServerException–These errors are usually caused by a server-side issue.
-
UnsupportedCommandException–The action isn't supported in this Region.
-
UnknownServiceError–The service returned an error code this client does not model.