snowflake.core.account.AccountResource

class snowflake.core.account.AccountResource(name: str, collection: AccountCollection)

Bases: ObjectReferenceMixin[AccountCollection]

Represents a reference to a Snowflake account.

With this account reference, you can fetch information about accounts, as well as perform certain actions on them.

Attributes

root

Methods

drop(grace_period_in_days: int, if_exists: bool = False) None

Drop this account.

Parameters:
  • grace_period_in_days (int) – Specifies the number of days during which the account can be restored.

  • if_exists (bool) – If True, does not throw an exception if the account does not exist. The default is None, which behaves equivalently to it being False.

Examples

Deleting an account using its reference:

>>> account_reference.drop()
Copy

Using an account reference to delete an account if it exists:

>>> account_reference.drop(if_exist=True)
Copy
undrop() None

Undrop this account.

Examples

Undropping an account using its reference:

>>> account_reference.undrop()
Copy