SHOW FEATURE POLICIES¶
Lists the feature policies for which you have access privileges.
Syntax¶
Parameters¶
[ IN ... ]Optionally specifies the scope of the command. Specify one of the following:
ACCOUNTReturns information about feature policies created in the specified account.
APPLICATION app_nameReturns information about feature policies created in the specified app.
APPLICATION PACKAGE app_package_nameReturns information about feature policies created in the specified application package.
DATABASE database_nameReturns information about feature policies created in the specified database.
SCHEMA schema_nameReturns information about feature policies created in the specified schema.
ON ACCOUNTShows the feature policies that have been applied to the current account.
ON APPLICATION app_nameShows the feature policies that have been applied on the specified app. This command also displays feature policies that are inherited from those applied on the account.
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| OWNERSHIP | Feature policy | This privilege is required to use this 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.
Output¶
| Column | Description |
|---|---|
created_on | The timestamp when the policy was created. |
name | The name of the policy. |
database_name | The name of the database containing the policy. |
schema_name | The name of the schema containing the policy. |
kind | The type of feature policy. Currently, only FEATURE_POLICY is supported. |
owner | The role that owns the feature policy. |
comment | A comment containing information about the policy. |
owner_role_type | The type of the role that owns the feature policy. |
options | Currently, always NULL. |
Examples¶
The following example lists the feature policies that you have the privileges to view in the current account:
The following example lists the feature policies that you have the privileges to view
in an app named hello_snowflake_app:
The following example lists the feature policies that have been applied on the current account: