a.workspace_network_configuration: Workspace Network Option

class databricks.sdk.service.settings.WorkspaceNetworkConfigurationAPI

These APIs allow configuration of network settings for Databricks workspaces by selecting which network policy to associate with the workspace. Each workspace is always associated with exactly one network policy that controls which network destinations can be accessed from the Databricks environment. By default, workspaces are associated with the ‘default-policy’ network policy. You cannot create or delete a workspace’s network option, only update it to associate the workspace with a different policy

get_workspace_network_option_rpc(workspace_id: int) WorkspaceNetworkOption

Gets the network option for a workspace. Every workspace has exactly one network policy binding, with ‘default-policy’ used if no explicit assignment exists.

Parameters:

workspace_id – int The workspace ID.

Returns:

WorkspaceNetworkOption

update_workspace_network_option_rpc(workspace_id: int, workspace_network_option: WorkspaceNetworkOption) WorkspaceNetworkOption

Updates the network option for a workspace. This operation associates the workspace with the specified network policy. To revert to the default policy, specify ‘default-policy’ as the network_policy_id.

Parameters:
  • workspace_id – int The workspace ID.

  • workspace_network_optionWorkspaceNetworkOption The network option details for the workspace.

Returns:

WorkspaceNetworkOption