SHOW PACKAGES POLICIES

statementsupportedGovernance (policies, tags, data quality)

docs.snowflake.com ↗

Object: PACKAGES POLICY

Lists packages policy information.

Syntax

supportedpartialnot supportednot scored

SHOW PACKAGES POLICIES [ IN
                            {
                              SCHEMA                   |
                              SCHEMA <schema_name>     |
                              <schema_name>
                            }
                       ]

Parameters

NameRequiredDescription
[ IN ... ]Optionally specifies the scope of the command. Specify one of the following:
SCHEMA, SCHEMA schema_name, schema_nameReturns records for the current schema in use or a specified schema (schema_name). SCHEMA is optional if a database is in use or if you specify the fully qualified schema_name (for example, db.schema). If no database is in use, specifying SCHEMA has no effect on the output.

Usage notes

Output

The command output provides policy properties and metadata in the following columns: Column | Description created_on | Date and time when the policy was created. name | Name of the policy. database_name | Database in which the policy is stored. schema_name | Schema in which the policy is stored. kind | The kind of policy. owner | Role that owns the policy (i.e. has the OWNERSHIP privilege on the policy) comment | Comment for the policy. owner_role_type | The type of role that owns the object, for example ROLE. If a Snowflake Native App owns the object, the value is APPLICATION. Snowflake returns NULL if you delete the object because a deleted object does not have an owner role.

Access control requirements

A role used to execute this SQL command must have at least one of the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | Packages policy | OWNERSHIP is a special privilege on an object that is automatically granted to the role that created the object, but can also be transferred using the GRANT OWNERSHIP command to a different role by the owning role (or any role with the MANAGE GRANTS privilege). USAGE | Packages policy | Also grants the ability to execute a SHOW or DESCRIBE command on the packages policy. Can be granted to a role using the GRANT <privileges> … TO ROLE command. 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.