SHOW SHARED CONTENT IN APPLICATION PACKAGE
statementsupportedNative apps, listings & sharingShows all of the objects for which you have access privileges that have been shared from a Declarative Share application package. Support for Snowflake Declarative Shares is available to all accounts.
Syntax
supportedpartialnot supportednot scored
SHOW SHARED CONTENT IN APPLICATION PACKAGE <pkg_name> FOR VERSION <version_name>
Parameters
| Name | Required | Description |
|---|---|---|
pkg_name | Specifies the package (pkg_name) containing the shared objects. | |
FOR VERSION version_name | Specifies the version (version_name) of the package containing the shared objects. |
Usage notes
- User-defined functions (UDFs) and stored procedures are copied into the installed application and aren’t listed by this command. An empty result doesn’t mean that the manifest contains no logic objects.
- For an automated inventory check, download the manifest for the version you’re inspecting and parse the functions, procedures, and role declarations. These declarations describe the intended shared content, not whether a consumer can run it.
Output
The output of the command includes the following columns, which describe the properties and metadata of the object: Column | Description version_name | The automatically generated version name for the shared object. If the object is part of the live version, the value is LIVE. database_name | The name of the database containing the shared object. schema_name | The name of the schema containing the shared object. entity_name | The name of the shared object. entity_type | The type of the shared object, for example, TABLE, VIEW, or NOTEBOOK.
Access control requirements
This command requires a role with the relevant privilege on the entities returned. For example, if the application package contains a shared table, the role must have the USAGE privilege on the database and schema containing the table, and the SELECT privilege on the table.