SHOW MAINTENANCE POLICIES¶
Lists the maintenance policies applied to the specified account or app.
Syntax¶
ACCOUNTShows the maintenance policies applied to the account.
{APPLICATION <app_name>}Shows the maintenance policies applied to the specified app.
Parameters¶
{ ON | IN }Specifies the scope of the command. Specify one of the following:
ACCOUNTReturns records for the entire account.
APPLICATION app_nameReturns records for the specified app.
IN entity_type entity_nameReturns records for the specified entity. Specify one of the following for the
entity_type:DATABASEAPPLICATION PACKAGESCHEMA
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](/sql-reference/sql/grant-ownership) command to a different role by the owning role (or any role with the MANAGE GRANTS privilege). |
Examples¶
The following example shows all maintenance policies applied to the account:
Show maintenance policies for a specific app:
Show maintenance policies for a specific database:
Show maintenance policies for a specific app package:
Show maintenance policies for a specific schema: