SHOW FEATURE POLICIES¶
Lists the feature policies for which you have access privileges.
Syntax¶
SHOW FEATURE POLICIES
[ IN
{
ACCOUNT |
APPLICATION {app_name} |
APPLICATION PACKAGE {app_package_name} |
DATABASE {database_name} |
SCHEMA {schema_name} |
}
]
SHOW FEATURE POLICIES ON ACCOUNT
SHOW FEATURE POLICIES ON APPLICATION <application_name>
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. |
The USAGE privilege on the parent database and schema are required to perform operations on any object in a schema. Note that a role granted any privilege on a schema allows that role to resolve the schema. For example, a role granted CREATE privilege on a schema can create objects on that schema without also having USAGE granted on that 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 |
|---|---|
|
The timestamp when the policy was created. |
|
The name of the policy. |
|
The name of the database containing the policy. |
|
The name of the schema containing the policy. |
|
The type of feature policy. Currently, only |
|
The role that owns the feature policy. |
|
A comment containing information about the policy. |
|
The type of the role that owns the feature policy. |
|
Currently, always NULL. |
Examples¶
The following example lists the feature policies that you have the privileges to view in the current account:
SHOW FEATURE POLICIES;
The following example lists the feature policies that you have the privileges to view
in an app named hello_snowflake_app:
SHOW FEATURE POLICIES IN APPLICATION hello_snowflake_app;
The following example lists the feature policies that have been applied on the current account:
SHOW FEATURE POLICIES ON ACCOUNT