images
Creates, updates, deletes, gets or lists an images
resource.
Overview
Name | images |
Type | Resource |
Id | snowflake.image_repository.images |
Fields
The following fields are returned by SELECT
queries:
- list_images_in_repository
A image in a Snowflake image repository.
Name | Datatype | Description |
---|---|---|
image_name | string | Image name. |
created_on | string | Date and time when the image was uploaded to the image repository. |
digest | string | SHA256 digest of the image. |
image_path | string | Image path (database_name/schema_name/repository_name/image_name:image_tag). |
tags | string | Image tags. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list_images_in_repository | select | database_name , schema_name , name , endpoint | List 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.
Name | Datatype | Description |
---|---|---|
database_name | string | Identifier (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. |
endpoint | string | Organization and Account Name (default: orgid-acctid) |
name | string | Identifier (i.e. name) for the resource. |
schema_name | string | Identifier (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_repository
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;