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 | None = None) 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, optional) β Check the existence of this account before dropping it. Default is
None
, which is equivalent toFalse
.
Examples
Deleting an account using its reference:
>>> account_reference.drop()
Deleting an account using its reference if it exists:
>>> account_reference.drop(if_exists=True)
- undrop() None ΒΆ
Undrop this account.
Examples
Undropping an account using its reference:
>>> account_reference.undrop()