network_connectivity
Operations on a network_connectivity
resource.
Overview
Name | network_connectivity |
Type | Resource |
Id | databricks_account.settings.network_connectivity |
Fields
Name | Datatype |
---|---|
name | string |
account_id | string |
creation_time | integer |
egress_config | object |
network_connectivity_config_id | string |
region | string |
updated_time | integer |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getnetworkconnectivityconfiguration | SELECT | account_id, network_connectivity_config_id | Gets a network connectivity configuration. |
listnetworkconnectivityconfigurations | SELECT | account_id | Gets an array of network connectivity configurations. |
createnetworkconnectivityconfiguration | INSERT | account_id | Creates a network connectivity configuration (NCC), which provides stable IP CIDR blocks that are associated with your workspace. You can assign an NCC to one or more workspaces in the same region. Once assigned, the workspace serverless compute resources use the same set of stable IP CIDR blocks to access your resources. |
deletenetworkconnectivityconfiguration | DELETE | account_id, network_connectivity_config_id | Deletes a network connectivity configuration. |
SELECT
examples
- network_connectivity (listnetworkconnectivityconfigurations)
- network_connectivity (getnetworkconnectivityconfiguration)
SELECT
name,
account_id,
creation_time,
egress_config,
network_connectivity_config_id,
region,
updated_time
FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}';
SELECT
name,
account_id,
creation_time,
egress_config,
network_connectivity_config_id,
region,
updated_time
FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}' AND
network_connectivity_config_id = '{{ network_connectivity_config_id }}';
INSERT
example
Use the following StackQL query and manifest file to create a new network_connectivity
resource.
- network_connectivity
- Manifest
/*+ create */
INSERT INTO databricks_account.settings.network_connectivity (
account_id,
data__name,
data__region
)
SELECT
'{{ account_id }}',
'{{ name }}',
'{{ region }}'
;
- name: your_resource_model_name
props:
- name: name
value: 9ffa9185-7453-4fb2-aa6a-3105a6ae83a8
- name: region
value: string
DELETE
example
Deletes a network_connectivity
resource.
/*+ delete */
DELETE FROM databricks_account.settings.network_connectivity
WHERE account_id = '{{ account_id }}' AND
network_connectivity_config_id = '{{ network_connectivity_config_id }}';