Skip to main content

images

Creates, updates, deletes, gets or lists an images resource.

Overview

Nameimages
TypeResource
Idsnowflake.image_repository.images

Fields

The following fields are returned by SELECT queries:

A image in a Snowflake image repository.

NameDatatypeDescription
image_namestringImage name.
created_onstringDate and time when the image was uploaded to the image repository.
digeststringSHA256 digest of the image.
image_pathstringImage path (database_name/schema_name/repository_name/image_name:image_tag).
tagsstringImage tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_images_in_repositoryselectdatabase_name, schema_name, name, endpointList images in the given image repository.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
database_namestringIdentifier (i.e. name) for the database to which the resource belongs. You can use the /api/v2/databases GET request to get a list of available databases.
endpointstringOrganization and Account Name (default: orgid-acctid)
namestringIdentifier (i.e. name) for the resource.
schema_namestringIdentifier (i.e. name) for the schema to which the resource belongs. You can use the /api/v2/databases/{database}/schemas GET request to get a list of available schemas for the specified database.

SELECT examples

List images in the given image repository.

SELECT
image_name,
created_on,
digest,
image_path,
tags
FROM snowflake.image_repository.images
WHERE database_name = '{{ database_name }}' -- required
AND schema_name = '{{ schema_name }}' -- required
AND name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required;