snowflake.core.account.AccountResource¶
- class snowflake.core.account.AccountResource(name: str, collection: AccountCollection)¶
- Bases: - AccountResourceBase- 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¶
- The Root object this reference belongs to. 
 - Methods - drop(grace_period_in_days: int, if_exists: bool | None = None) None¶
- Delete an account. - Parameters:
- grace_period_in_days (int) – Specifies the number of days during which the account can be restored (“undropped”). The minimum is 3 days and the maximum is 90 days. (required) 
- if_exists (bool) – Parameter that specifies how to handle the request for a resource that does not exist: - true: The endpoint does not throw an error if the resource does not exist. It returns a 200 success response, but does not take any action on the resource. - false: The endpoint throws an error if the resource doesn’t exist. 
 
 
 - drop_async(grace_period_in_days: int, if_exists: bool | None = None) PollingOperation[None]¶
- An asynchronous version of - drop().- Refer to - PollingOperationfor more information on asynchronous execution and the return type.
 - undrop() None¶
- Restore an account. 
 - undrop_async() PollingOperation[None]¶
- An asynchronous version of - undrop().- Refer to - PollingOperationfor more information on asynchronous execution and the return type.