snowflake.core.managed_account.ManagedAccount¶
- class snowflake.core.managed_account.ManagedAccount(name: str, admin_name: str, admin_password: str, account_type: str = 'READER', cloud: str | None = None, region: str | None = None, locator: str | None = None, created_on: datetime | None = None, url: str | None = None, account_locator_url: str | None = None, comment: str | None = None)¶
Bases:
object
A model object representing the ManagedAccount resource.
Constructs an object of type ManagedAccount with the provided properties.
- Parameters:
name (str) – A Snowflake object identifier.
admin_name (str) – Name of the account administrator.
admin_password (str) – Password for the account administrator.
account_type (str) – Type of the account.
cloud (str, optional) – Cloud in which the managed account is located. For reader accounts, this is always the same as the cloud for the provider account.
region (str, optional) – Region in which the managed account is located. For reader accounts, this is always the same as the region for the provider account.
locator (str, optional) – Legacy identifier for the account.
created_on (datetime, optional) – Date and time the account was created.
url (str, optional) – Account URL that is used to connect to the account, in the account name format. The account identifier in this format follows the pattern <orgname>-<account_name>.
account_locator_url (str, optional) – Account URL that is used to connect to the account, in the legacy account locator format.
comment (str, optional) – Optional comment in which to store information related to the account.
Methods
- classmethod from_dict(obj: dict) ManagedAccountModel ¶
Creates an instance of ManagedAccount from a dict.
This method constructs a ManagedAccount object from a dictionary with the key-value pairs of its properties.
- Parameters:
obj (dict) – A dictionary whose keys and values correspond to the properties of the resource object.
- Returns:
A ManagedAccount object created using the input dictionary; this will fail if the required properties are missing.
- Return type:
- to_dict()¶
Creates a dictionary of the properties from a ManagedAccount.
This method constructs a dictionary with the key-value entries corresponding to the properties of the ManagedAccount object.
- Returns:
A dictionary object created using the input model.
- Return type:
dict