Skip to main content

ip_access_lists

Operations on a ip_access_lists resource.

Overview

Nameip_access_lists
TypeResource
Iddatabricks_workspace.workspace.ip_access_lists

Fields

NameDatatype
address_countinteger
created_atinteger
created_byinteger
enabledboolean
ip_addressesarray
labelstring
list_idstring
list_typestring
updated_atinteger
updated_byinteger

Methods

NameAccessible byRequired ParamsDescription
getSELECTip_access_list_id, deployment_nameGets an IP access list, specified by its list ID.
listSELECTdeployment_nameGets all IP access lists for the specified workspace.
createINSERTdeployment_nameCreates an IP access list for this workspace.
deleteDELETEip_access_list_id, deployment_nameDeletes an IP access list, specified by its list ID.
updateUPDATEip_access_list_id, deployment_nameUpdates an existing IP access list, specified by its ID.
replaceREPLACEip_access_list_id, deployment_nameReplaces an IP access list, specified by its ID.

SELECT examples

SELECT
address_count,
created_at,
created_by,
enabled,
ip_addresses,
label,
list_id,
list_type,
updated_at,
updated_by
FROM databricks_workspace.workspace.ip_access_lists
WHERE deployment_name = '{{ deployment_name }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_workspace.workspace.ip_access_lists (
deployment_name,
data__label,
data__list_type,
data__ip_addresses
)
SELECT
'{{ deployment_name }}',
'{{ label }}',
'{{ list_type }}',
'{{ ip_addresses }}'
;

UPDATE example

Updates a ip_access_lists resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.workspace.ip_access_lists
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE ip_access_list_id = '{{ ip_access_list_id }}' AND
deployment_name = '{{ deployment_name }}';

REPLACE example

Replaces a ip_access_lists resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.workspace.ip_access_lists
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE ip_access_list_id = '{{ ip_access_list_id }}' AND
deployment_name = '{{ deployment_name }}';

DELETE example

Deletes a ip_access_lists resource.

/*+ delete */
DELETE FROM databricks_workspace.workspace.ip_access_lists
WHERE ip_access_list_id = '{{ ip_access_list_id }}' AND
deployment_name = '{{ deployment_name }}';