snowflake.core.managed_account.ManagedAccountCollection¶
- class snowflake.core.managed_account.ManagedAccountCollection(root: Root)¶
Bases:
AccountObjectCollectionParent[ManagedAccountResource]Represents the collection operations of the Snowflake ManagedAccount resource.
With this collection, you can create, iterate through, and search for managed accounts that you have access to in the current context.
Examples
Creating a managed account instance:
Attributes
- root¶
Methods
- create(managed_account: ManagedAccountModel) ManagedAccountResource¶
Create a managed account in Snowflake.
- Parameters:
managed_account (ManagedAccount)
Examples
Creating a managed account instance and getting reference to it:
- items() ItemsView[str, T]¶
- iter(*, like: str | None = None) Iterator[ManagedAccountModel]¶
Iterate through
ManagedAccountobjects in Snowflake, filtering on any optional like pattern.- Parameters:
like (str, optional) – A case-insensitive string functioning as a filter, with support for SQL wildcard characters (% and _).
Examples
Showing all managed accounts that you have access to see:
Showing information of the exact managed account you want to see:
Showing managed accounts starting with ‘your-managed-account-name-‘:
Using a for loop to retrieve information from iterator:
- keys() KeysView[str]¶
- values() ValuesView[T]¶