Skip to main content

private_access

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

Overview

Nameprivate_access
TypeResource
Iddatabricks_account.provisioning.private_access

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe Databricks account ID that hosts the private access settings.
private_access_settings_idstringDatabricks private access settings ID.
private_access_settings_namestringThe human-readable name of the private access settings object.
allowed_vpc_endpoint_idsarrayAn array of Databricks VPC endpoint IDs. This is the Databricks ID that is returned when registering the VPC endpoint configuration in your Databricks account. This is not the ID of the VPC endpoint in AWS. Only used when private_access_level is set to ENDPOINT. This is an allow list of VPC endpoints that in your account that can connect to your workspace over AWS PrivateLink. If hybrid access to your workspace is enabled by setting public_access_enabled to true, this control only works for PrivateLink connections. To control how your workspace is accessed via public internet, see IP access lists.
private_access_levelstringThe private access level controls which VPC endpoints can connect to the UI or API of any workspace that attaches this private access settings object. `ACCOUNT` level access (the default) allows only VPC endpoints that are registered in your Databricks account connect to your workspace. `ENDPOINT` level access allows only specified VPC endpoints connect to your workspace. For details, see allowed_vpc_endpoint_ids. (ACCOUNT, ENDPOINT)
public_access_enabledbooleanDetermines if the workspace can be accessed over public internet. For fully private workspaces, you can optionally specify false, but only if you implement both the front-end and the back-end PrivateLink connections. Otherwise, specify true, which means that public access is enabled.
regionstringThe AWS region for workspaces attached to this private access settings object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
private_access_getselectaccount_id, private_access_settings_idGets a Databricks private access settings configuration, both specified by ID.
private_access_listselectaccount_idLists Databricks private access settings for an account.
private_access_createinsertaccount_idCreates a private access settings configuration, which represents network access restrictions for
private_access_replacereplaceaccount_id, private_access_settings_id, customer_facing_private_access_settingsUpdates an existing private access settings object, which specifies how your workspace is accessed
private_access_deletedeleteaccount_id, private_access_settings_idDeletes a Databricks private access settings configuration, both specified by ID.

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
account_idstring
private_access_settings_idstring

SELECT examples

Gets a Databricks private access settings configuration, both specified by ID.

SELECT
account_id,
private_access_settings_id,
private_access_settings_name,
allowed_vpc_endpoint_ids,
private_access_level,
public_access_enabled,
region
FROM databricks_account.provisioning.private_access
WHERE account_id = '{{ account_id }}' -- required
AND private_access_settings_id = '{{ private_access_settings_id }}' -- required
;

INSERT examples

Creates a private access settings configuration, which represents network access restrictions for

INSERT INTO databricks_account.provisioning.private_access (
allowed_vpc_endpoint_ids,
private_access_level,
private_access_settings_name,
public_access_enabled,
region,
account_id
)
SELECT
'{{ allowed_vpc_endpoint_ids }}',
'{{ private_access_level }}',
'{{ private_access_settings_name }}',
{{ public_access_enabled }},
'{{ region }}',
'{{ account_id }}'
RETURNING
account_id,
private_access_settings_id,
private_access_settings_name,
allowed_vpc_endpoint_ids,
private_access_level,
public_access_enabled,
region
;

REPLACE examples

Updates an existing private access settings object, which specifies how your workspace is accessed

REPLACE databricks_account.provisioning.private_access
SET
customer_facing_private_access_settings = '{{ customer_facing_private_access_settings }}'
WHERE
account_id = '{{ account_id }}' --required
AND private_access_settings_id = '{{ private_access_settings_id }}' --required
AND customer_facing_private_access_settings = '{{ customer_facing_private_access_settings }}' --required
RETURNING
account_id,
private_access_settings_id,
private_access_settings_name,
allowed_vpc_endpoint_ids,
private_access_level,
public_access_enabled,
region;

DELETE examples

Deletes a Databricks private access settings configuration, both specified by ID.

DELETE FROM databricks_account.provisioning.private_access
WHERE account_id = '{{ account_id }}' --required
AND private_access_settings_id = '{{ private_access_settings_id }}' --required
;