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 isNone
, which behaves equivalently to it beingFalse
.
Examples
Deleting an account using its reference:
>>> account_reference.drop()
Using an account reference to delete an account if it exists:
>>> account_reference.drop(if_exist=True)
- undrop() None ΒΆ
Undrop this account.
Examples
Undropping an account using its reference:
>>> account_reference.undrop()