Schema:

ACCOUNT_USAGE

DATA_MOVEMENT_POLICY_RULES view

This Account Usage view displays a row for each data movement rule defined in your account.

Columns

Column nameData typeDescription
IDNUMBERInternal/system-generated identifier for the data movement rule.
NAMEVARCHARName of the data movement rule.
SCHEMA_IDNUMBERInternal/system-generated identifier for the schema of the rule.
SCHEMAVARCHARSchema of the data movement rule.
DATABASE_IDNUMBERInternal/system-generated identifier for the database of the rule.
DATABASEVARCHARDatabase of the data movement rule.
OWNERVARCHARName of the role that owns the data movement rule.
OWNER_ROLE_TYPEVARCHARType of the role that owns the object, for example ROLE or DATABASE_ROLE.
COMMENTVARCHARComment for the data movement rule.
MOVEMENT_TYPEVARCHARType of movement the rule applies to: COPY_INTO_EXTERNAL_STAGE, COPY_INTO_INTERNAL_STAGE, AGENT_ACCESS, SNOWSIGHT_UI, UI_DOWNLOAD, PROGRAMMATIC_FETCH, or UNKNOWN.
FUNCTION_SIGNATUREVARCHARParameter signature for the rule function.
FUNCTION_BODYVARCHARSQL expression body of the rule.
FUNCTION_RETURN_TYPEVARCHARReturn data type of the rule function.
CREATEDTIMESTAMP_LTZDate and time when the data movement rule was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time when the data movement rule was last altered.
DELETEDTIMESTAMP_LTZDate and time when the data movement rule was dropped.

Usage notes

  • Latency for the view may be up to 2 hours.
  • The view only displays objects for which the current role for the session has been granted access privileges.

These views are also available in the ORGANIZATION_USAGE schema. Organization usage must be enabled for the account.