Account

class Account(token=None, url=None, channel=None, proxies=None, verify=True, preferences=None, local=False)[source]

Class that represents an account.

Account constructor.

Parameters:
  • token (Optional[str]) – Account token to use.

  • url (Optional[str]) – Authentication URL.

  • channel (Optional[str]) – Authentication channel (ibm_cloud/ibm_quantum)

  • proxies (Optional[ProxyConfiguration]) – Proxy configuration.

  • verify (Optional[bool]) – Whether to verify server’s TLS certificate.

Methods

Account.from_saved_format(data)

Creates an account instance from data saved on disk.

Account.to_saved_format()

Returns a dictionary that represents how the account is saved on disk.

Account.validate()

Validates the account instance.