workspace_network_configuration
Creates, updates, deletes, gets or lists a workspace_network_configuration resource.
Overview
| Name | workspace_network_configuration |
| Type | Resource |
| Id | databricks_account.settings.workspace_network_configuration |
Fields
The following fields are returned by SELECT queries:
- get_workspace_network_option_rpc
| Name | Datatype | Description |
|---|---|---|
network_policy_id | string | |
workspace_id | integer | The workspace ID. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_workspace_network_option_rpc | select | account_id, workspace_id | Gets the network option for a workspace. Every workspace has exactly one network policy binding, with | |
update_workspace_network_option_rpc | replace | account_id, workspace_id, workspace_network_option | Updates the network option for a workspace. This operation associates the workspace with the specified |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | |
workspace_id | integer | The workspace ID. |
SELECT examples
- get_workspace_network_option_rpc
Gets the network option for a workspace. Every workspace has exactly one network policy binding, with
SELECT
network_policy_id,
workspace_id
FROM databricks_account.settings.workspace_network_configuration
WHERE account_id = '{{ account_id }}' -- required
AND workspace_id = '{{ workspace_id }}' -- required
;
REPLACE examples
- update_workspace_network_option_rpc
Updates the network option for a workspace. This operation associates the workspace with the specified
REPLACE databricks_account.settings.workspace_network_configuration
SET
workspace_network_option = '{{ workspace_network_option }}'
WHERE
account_id = '{{ account_id }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND workspace_network_option = '{{ workspace_network_option }}' --required
RETURNING
network_policy_id,
workspace_id;