SHOW ARTIFACTS¶
Lists Snowflake Artifacts that the executing roles can inspect. It returns metadata, not artifact content, and does not require a running warehouse.
Syntax¶
Parameters¶
LIKE '<pattern>'
: Filters by the artifact’s identifier, not its display title. The pattern uses SQL LIKE wildcards and matches without regard to case.
IN ACCOUNT
: Lists artifacts in the current account, subject to the caller’s access. This is equivalent to omitting IN ACCOUNT.
FOR USER <user_name>
: Filters by the user who created the artifact, who might differ from its current owner.
FOR ROLE <role_name>
: Filters by the artifact’s current owner role. The caller must be able to resolve the specified role.
LIMIT <n>
: Returns at most n visible matches, where n is a positive integer. LIMIT ... FROM isn’t supported.
Access control requirements¶
An active role must own an artifact or have READ or WRITE on it to see its row. A role with account-level MONITOR, MANAGE GRANTS, or RESOLVE ALL can inspect all artifacts in the account. The command omits artifacts that the caller cannot inspect. For non-administrative roles, non-discoverable artifacts can also be omitted from the listing even when the caller has an artifact grant. To inspect a known artifact by identifier, use DESCRIBE ARTIFACT.
Output¶
The output includes id (the artifact’s external UUID), title, type, creation and update timestamps, creator and owner names, and publication and discoverability metadata. Use id, not title, when referring to an artifact in SQL. The displayed type value can differ from the label used in the Artifacts UI.
Usage notes¶
- The command can fail when an account exceeds its artifact scan limit, even when
LIKE,FOR USER,FOR ROLE, orLIMITis specified.LIMITlimits returned rows but doesn’t prevent the initial scan. Contact Snowflake Support if the account scan limit is exceeded. STARTS WITHandLIMIT ... FROMaren’t supported.- To post-process the output, use the pipe operator or
RESULT_SCAN. Reference lowercase output column names with double quotes.
Examples¶
See also DESCRIBE ARTIFACT and SYSTEM$SHOW_ARTIFACT_GRANTS.