Account Client

class databricks.sdk.AccountClient

The AccountClient is a client for the account-level Databricks REST API.

property config: Config
property api_client: ApiClient
property access_control: AccountAccessControlAPI

These APIs manage access rules on resources in an account.

property billable_usage: BillableUsageAPI

This API allows you to download billable usage logs for the specified account and date range.

property credentials: CredentialsAPI

These APIs manage credential configurations for this workspace.

property custom_app_integration: CustomAppIntegrationAPI

These APIs enable administrators to manage custom OAuth app integrations, which is required for adding/using Custom OAuth App Integration like Tableau Cloud for Databricks in AWS cloud.

property encryption_keys: EncryptionKeysAPI

These APIs manage encryption key configurations for this workspace (optional).

property groups: AccountGroupsAPI

Groups simplify identity management, making it easier to assign access to Databricks account, data, and other securable objects.

property ip_access_lists: AccountIpAccessListsAPI

The Accounts IP Access List API enables account admins to configure IP access lists for access to the account console.

property log_delivery: LogDeliveryAPI

These APIs manage log delivery configurations for this account.

property metastore_assignments: AccountMetastoreAssignmentsAPI

These APIs manage metastore assignments to a workspace.

property metastores: AccountMetastoresAPI

These APIs manage Unity Catalog metastores for an account.

property network_connectivity: NetworkConnectivityAPI

These APIs provide configurations for the network connectivity of your workspaces for serverless compute resources.

property networks: NetworksAPI

These APIs manage network configurations for customer-managed VPCs (optional).

property o_auth_published_apps: OAuthPublishedAppsAPI

These APIs enable administrators to view all the available published OAuth applications in Databricks.

property private_access: PrivateAccessAPI

These APIs manage private access settings for this account.

property published_app_integration: PublishedAppIntegrationAPI

These APIs enable administrators to manage published OAuth app integrations, which is required for adding/using Published OAuth App Integration like Tableau Desktop for Databricks in AWS cloud.

property service_principal_secrets: ServicePrincipalSecretsAPI

These APIs enable administrators to manage service principal secrets.

property service_principals: AccountServicePrincipalsAPI

Identities for use with jobs, automated tools, and systems such as scripts, apps, and CI/CD platforms.

property settings: AccountSettingsAPI

Accounts Settings API allows users to manage settings at the account level.

property storage: StorageAPI

These APIs manage storage configurations for this workspace.

property storage_credentials: AccountStorageCredentialsAPI

These APIs manage storage credentials for a particular metastore.

property usage_dashboards: UsageDashboardsAPI

These APIs manage usage dashboards for this account.

property users: AccountUsersAPI

User identities recognized by Databricks and represented by email addresses.

property vpc_endpoints: VpcEndpointsAPI

These APIs manage VPC endpoint configurations for this account.

property workspace_assignment: WorkspaceAssignmentAPI

The Workspace Permission Assignment API allows you to manage workspace permissions for principals in your account.

property workspaces: WorkspacesAPI

These APIs manage workspaces for this account.

property budgets: BudgetsAPI

These APIs manage budget configurations for this account.

get_workspace_client(workspace: Workspace) WorkspaceClient

Constructs a WorkspaceClient for the given workspace.

Returns a WorkspaceClient that is configured to use the same credentials as this AccountClient. The underlying config is copied from this AccountClient, but the host and azure_workspace_resource_id are overridden to match the given workspace, and the account_id field is cleared.

Usage:

wss = list(a.workspaces.list())
if len(wss) == 0:
    pytest.skip("no workspaces")
w = a.get_workspace_client(wss[0])
assert w.current_user.me().active
Parameters:

workspace – The workspace to construct a client for.

Returns:

A WorkspaceClient for the given workspace.