DESCRIBE MULTI PARTY APPROVAL POLICY

Returns the definition of a Multi-party Approval policy.

DESCRIBE can be abbreviated to DESC.

Syntax

{ DESCRIBE | DESC } MULTI PARTY APPROVAL POLICY <name>

Parameters

name

Specifies the identifier for the Multi-party Approval policy to describe.

If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.

For more information, see Identifier requirements.

Access control requirements

A role used to execute this SQL command must have at least one of the following privileges at a minimum:

PrivilegeObjectNotes
APPLY MULTI PARTY APPROVAL POLICYAccount
OWNERSHIPMulti-party Approval policy

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.

Usage notes

  • To post-process the output of this command, you can use the pipe operator (->>) or the RESULT_SCAN function. Both constructs treat the output as a result set that you can query.

    For example, you can use the pipe operator or RESULT_SCAN function to select specific columns from the SHOW command output or filter the rows.

    When you refer to the output columns, use double-quoted identifiers for the column names. For example, to select the output column type, specify SELECT "type".

    You must use double-quoted identifiers because the output column names for SHOW commands are in lowercase. The double quotes ensure that the column names in the SELECT list or WHERE clause match the column names in the SHOW command output that was scanned.

Output

The command returns the properties of a Multi-party Approval policy as rows with the following columns:

ColumnDescription
propertyThe name of the property.
valueThe value assigned to the property.

The property column includes the following rows:

PropertyDescription
NAMEIdentifier for the policy.
OWNERRole that owns the policy.
POLICY_DEFINITIONThe full YAML policy definition, as specified in the AS $$ ... $$ body. The returned definition may be normalized by Snowflake and look different from the original statement.
CREATED_ONThe timestamp when the policy was created.

Example

DESC MULTI PARTY APPROVAL POLICY security_db.policies.mpa_policy;