network_connectivity
Creates, updates, deletes, gets or lists a network_connectivity resource.
Overview​
| Name | network_connectivity |
| Type | Resource |
| Id | databricks_account.settings.network_connectivity |
Fields​
The following fields are returned by SELECT queries:
- get_network_connectivity_configuration
- list_network_connectivity_configurations
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression ^[0-9a-zA-Z-_]{3,30}$ |
account_id | string | Your Databricks account ID. You can find your account ID in your Databricks accounts console. |
network_connectivity_config_id | string | Databricks network connectivity configuration ID. |
creation_time | integer | Time in epoch milliseconds when this object was created. |
egress_config | object | The network connectivity rules that apply to network traffic from your serverless compute resources. |
region | string | The region for the network connectivity configuration. Only workspaces in the same region can be attached to the network connectivity configuration. |
updated_time | integer | Time in epoch milliseconds when this object was updated. |
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression ^[0-9a-zA-Z-_]{3,30}$ |
account_id | string | Your Databricks account ID. You can find your account ID in your Databricks accounts console. |
network_connectivity_config_id | string | Databricks network connectivity configuration ID. |
creation_time | integer | Time in epoch milliseconds when this object was created. |
egress_config | object | The network connectivity rules that apply to network traffic from your serverless compute resources. |
region | string | The region for the network connectivity configuration. Only workspaces in the same region can be attached to the network connectivity configuration. |
updated_time | integer | Time in epoch milliseconds when this object was updated. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_network_connectivity_configuration | select | account_id, network_connectivity_config_id, account_host | Gets a network connectivity configuration. | |
list_network_connectivity_configurations | select | account_id, account_host | page_token | Gets an array of network connectivity configurations. |
create_network_connectivity_configuration | insert | account_id, account_host, name, region | Creates a network connectivity configuration (NCC), which provides stable Azure service subnets when | |
delete_network_connectivity_configuration | delete | account_id, network_connectivity_config_id, account_host | Deletes a network connectivity configuration. |
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 | |
network_connectivity_config_id | string | Your Network Connectivity Configuration ID. |
page_token | string | Pagination token to go to next page based on previous query. |
SELECT examples​
- get_network_connectivity_configuration
- list_network_connectivity_configurations
Gets a network connectivity configuration.
SELECT
name,
account_id,
network_connectivity_config_id,
creation_time,
egress_config,
region,
updated_time
FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}' -- required
AND network_connectivity_config_id = '{{ network_connectivity_config_id }}' -- required
AND account_host = '{{ account_host }}' -- required
;
Gets an array of network connectivity configurations.
SELECT
name,
account_id,
network_connectivity_config_id,
creation_time,
egress_config,
region,
updated_time
FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}' -- required
AND account_host = '{{ account_host }}' -- required
AND page_token = '{{ page_token }}'
;
INSERT examples​
- create_network_connectivity_configuration
- Manifest
Creates a network connectivity configuration (NCC), which provides stable Azure service subnets when
INSERT INTO databricks_account.settings.network_connectivity (
name,
region,
account_id,
account_host
)
SELECT
'{{ name }}' /* required */,
'{{ region }}' /* required */,
'{{ account_id }}',
'{{ account_host }}'
RETURNING
name,
account_id,
network_connectivity_config_id,
creation_time,
egress_config,
region,
updated_time
;
# Description fields are for documentation purposes
- name: network_connectivity
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the network_connectivity resource.
- name: account_host
value: "{{ account_host }}"
description: Required parameter for the network_connectivity resource.
- name: name
value: "{{ name }}"
description: |
The name of the network connectivity configuration. The name can contain alphanumeric characters, hyphens, and underscores. The length must be between 3 and 30 characters. The name must match the regular expression ^[0-9a-zA-Z-_]{3,30}$
- name: region
value: "{{ region }}"
description: |
The region for the network connectivity configuration. Only workspaces in the same region can be attached to the network connectivity configuration.
DELETE examples​
- delete_network_connectivity_configuration
Deletes a network connectivity configuration.
DELETE FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}' --required
AND network_connectivity_config_id = '{{ network_connectivity_config_id }}' --required
AND account_host = '{{ account_host }}' --required
;