Skip to main content

networks

Operations on a networks resource.

Overview

Namenetworks
TypeResource
Iddatabricks_account.provisioning.networks

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_id, network_idGets a Databricks network configuration, which represents an AWS VPC and its resources. This requires a pre-existing VPC and subnets.
listSELECTaccount_idGets a list of all Databricks network configurations for an account, specified by ID.
createINSERTaccount_idCreates 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
deleteDELETEaccount_id, network_idDeletes a Databricks network configuration, which represents a cloud VPC and its resources. You cannot delete a network that is associated with a workspace.

SELECT examples

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

INSERT example

Use the following StackQL query and manifest file to create a new networks resource.

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

DELETE example

Deletes a networks resource.

/*+ delete */
DELETE FROM databricks_account.provisioning.networks
WHERE account_id = '{{ account_id }}' AND
network_id = '{{ network_id }}';