Skip to main content

networks

Creates, updates, deletes, gets or lists a networks resource.

Overview

Namenetworks
TypeResource
Iddatabricks_account.provisioning.networks

Fields

The following fields are returned by SELECT queries:

The network configuration was successfully returned.

NameDatatypeDescription
account_idstring
network_idstring
vpc_idstring
workspace_idinteger
network_namestring
creation_timeinteger
error_messagesarray
security_group_idsarray
subnet_idsarray
vpc_endpointsobject
vpc_statusstring
warning_messagesarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectGets a Databricks network configuration, which represents an AWS VPC and its resources. This requires a pre-existing VPC and subnets.
listselectGets a list of all Databricks network configurations for an account, specified by ID.
createinsertCreates a Databricks network configuration that represents an AWS VPC and its resources. The VPC will be used for new Databricks clusters. This requires a pre-existing VPC and subnets. For VPC requirements, see
deletedeleteDeletes a Databricks network configuration, which represents a cloud VPC and its resources. You cannot delete a network that is associated with a workspace.

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.

NameDatatypeDescription

SELECT examples

Gets a Databricks network configuration, which represents an AWS VPC and its resources. This requires a pre-existing VPC and subnets.

SELECT
account_id,
network_id,
vpc_id,
workspace_id,
network_name,
creation_time,
error_messages,
security_group_ids,
subnet_ids,
vpc_endpoints,
vpc_status,
warning_messages
FROM databricks_account.provisioning.networks;

INSERT examples

Creates a Databricks network configuration that represents an AWS VPC and its resources. The VPC will be used for new Databricks clusters. This requires a pre-existing VPC and subnets. For VPC requirements, see

INSERT INTO databricks_account.provisioning.networks (
data__network_name,
data__vpc_id,
data__subnet_ids,
data__security_group_ids,
data__vpc_endpoints
)
SELECT
'{{ network_name }}',
'{{ vpc_id }}',
'{{ subnet_ids }}',
'{{ security_group_ids }}',
'{{ vpc_endpoints }}'
;

DELETE examples

Deletes a Databricks network configuration, which represents a cloud VPC and its resources. You cannot delete a network that is associated with a workspace.

DELETE FROM databricks_account.provisioning.networks;