Schema:

ORGANIZATION_USAGE

STORAGE_LIFECYCLE_POLICIES view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

This Organization Usage view displays storage lifecycle policies in your organization.

Each row in this view corresponds to a different storage lifecycle policy.

Columns

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
NAMETEXTName of the storage lifecycle policy.
IDNUMBERInternal/system-generated identifier for the storage lifecycle policy.
SCHEMA_IDTEXTInternal/system-generated identifier for the schema in which the policy resides.
SCHEMATEXTSchema to which the storage lifecycle policy belongs.
DATABASE_IDTEXTInternal/system-generated identifier for the database in which the policy resides.
DATABASETEXTDatabase to which the storage lifecycle policy belongs.
OWNERTEXTName of the role that owns the storage lifecycle policy.
SIGNATURETEXTType signature of the storage lifecycle policy’s arguments.
RETURN_TYPETEXTReturn value data type.
BODYTEXTStorage lifecycle policy definition.
COMMENTTEXTComments entered for the storage lifecycle policy (if any).
CREATED_ONTIMESTAMP_LTZDate and time when the storage lifecycle policy was created.
LAST_ALTERED_ONTIMESTAMP_LTZDate and time when the storage lifecycle policy was last altered.
DELETED_ONTIMESTAMP_LTZDate and time when the storage lifecycle policy was dropped.
OWNER_ROLE_TYPETEXTThe type of role that owns the object, either ROLE or DATABASE_ROLE.
OPTIONSOBJECTStorage lifecycle policy options, including ARCHIVE_FOR_DAYS (number of days to keep data in current tier) and ARCHIVE_TIER (target storage tier).

Usage notes

  • Latency for the view may be up to 24 hours.