SHOW FILES IN ARTIFACT REPOSITORY

statementsupportedContainer services & dev tooling

docs.snowflake.com ↗

Note This command is in preview and might not be available in all accounts. Lists retained files in a PYPI artifact repository.

Syntax

supportedpartialnot supportednot scored

SHOW FILES [ LIKE '<pattern>' ] IN ARTIFACT REPOSITORY <name>
  [ LIMIT <rows> ];

Parameters

NameRequiredDescription
LIKE 'pattern'Filters the output by file name or package name. Matching a package name also finds files whose file names use underscores instead of hyphens. The match uses SQL LIKE pattern matching and is case-insensitive.
nameName of the artifact repository.
LIMIT rowsLimits the maximum number of rows returned. The value can’t exceed the current maximum result limit, which is 10,000 by default.

Usage notes

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes READ | Artifact repository | None Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.

Output

The command returns one row per retained file with the following columns: Column | Description created_on | Date and time when the file was retained in the repository, returned as a timestamp with scale 3. name | Name of the retained file. package_name | Name of the package associated with the file. version | Version of the package. sha256 | SHA-256 digest of the file. size | File size in bytes.

See also

Referenced by