Workspace Network Option
WorkspaceNetworkOption object
- network_policy_idstring
The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'.
- workspace_idint64
The workspace ID.
Get workspace network option GA
GET
Gets the network option for a workspace. Every workspace has exactly one network policy binding, with 'default-policy' used if no explicit assignment exists.
API scopes: networking
Parameters
- account_idstringuuidRequiredpath
Your <Databricks> account ID. You can find your account ID in your <Databricks> accounts console.
- workspace_idint64Requiredpath
The workspace ID.
Response
Returns the WorkspaceNetworkOption object.
Update workspace network option GA
PUT
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.
API scopes: networking
Parameters
- account_idstringuuidRequiredpath
Your <Databricks> account ID. You can find your account ID in your <Databricks> accounts console.
- workspace_idint64Requiredpath
The workspace ID.
Request body
The network option details for the workspace.
- network_policy_idstring
The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'.
- workspace_idint64
The workspace ID.
Response
Returns the WorkspaceNetworkOption object.