SHOW MAINTENANCE POLICIES

statementsupportedGovernance (policies, tags, data quality)

docs.snowflake.com ↗

Object: MAINTENANCE POLICY

Lists the maintenance policies applied to the specified account or app.

Syntax

supportedpartialnot supportednot scored

SHOW MAINTENANCE POLICIES { ON | IN } { ACCOUNT | APPLICATION <app_name> | <entity_type> <entity_name> }

Parameters

NameRequiredDescription
ACCOUNTShows the maintenance policies applied to the account.
{APPLICATION <app_name>}Shows the maintenance policies applied to the specified app.
{ ON | IN }Specifies the scope of the command. Specify one of the following:
  • ACCOUNT — Returns records for the entire account.
  • IN entity_type entity_name — Returns records for the specified entity. Specify one of the following for the entity_type: DATABASE APPLICATION PACKAGE SCHEMA
APPLICATION app_nameReturns records for the specified app.

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 APPLY MAINTENANCE POLICY | Account | OWNERSHIP | Maintenance 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).

See also

Referenced by