Skip to main content

private_access

Operations on a private_access resource.

Overview

Nameprivate_access
TypeResource
Iddatabricks_account.provisioning.private_access

Fields

NameDatatype
account_idstring
allowed_vpc_endpoint_idsarray
private_access_levelstring
private_access_settings_idstring
private_access_settings_namestring
public_access_enabledboolean
regionstring

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_id, private_access_settings_idGets a private access settings object, which specifies how your workspace is accessed over
listSELECTaccount_idGets a list of all private access settings objects for an account, specified by ID.
createINSERTaccount_idCreates a private access settings object, which specifies how your workspace is accessed over
deleteDELETEaccount_id, private_access_settings_idDeletes a private access settings object, which determines how your workspace is accessed over
replaceREPLACEaccount_id, private_access_settings_idUpdates an existing private access settings object, which specifies how your workspace is accessed over

SELECT examples

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

INSERT example

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

/*+ create */
INSERT INTO databricks_account.provisioning.private_access (
account_id,
data__private_access_settings_name,
data__region,
data__public_access_enabled,
data__private_access_level,
data__allowed_vpc_endpoint_ids
)
SELECT
'{{ account_id }}',
'{{ private_access_settings_name }}',
'{{ region }}',
'{{ public_access_enabled }}',
'{{ private_access_level }}',
'{{ allowed_vpc_endpoint_ids }}'
;

REPLACE example

Replaces a private_access resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_account.provisioning.private_access
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE account_id = '{{ account_id }}' AND
private_access_settings_id = '{{ private_access_settings_id }}';

DELETE example

Deletes a private_access resource.

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