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, account_host | 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, account_host | 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_host | string | The Databricks account console host. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws), or set explicitly with DATABRICKS_ACCOUNT_HOST (bare host, no scheme). (default: accounts.cloud.databricks.com, x-stackQL-envVar: DATABRICKS_ACCOUNT_HOST, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"accounts.cloud.databricks.com","azure":"accounts.azuredatabricks.net","gcp":"accounts.gcp.databricks.com"}}) |
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
AND account_host = '{{ account_host }}' -- 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
network_policy_id = '{{ network_policy_id }}',
workspace_id = {{ workspace_id }}
WHERE
account_id = '{{ account_id }}' --required
AND workspace_id = '{{ workspace_id }}' --required
AND account_host = '{{ account_host }}' --required
RETURNING
network_policy_id,
workspace_id;