Skip to main content

ip_access_lists

Operations on a ip_access_lists resource.

Overview

Nameip_access_lists
TypeResource
Iddatabricks_account.settings.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
getSELECTaccount_id, ip_access_list_idGets an IP access list, specified by its list ID.
listSELECTaccount_idGets all IP access lists for the specified account.
createINSERTaccount_idCreates an IP access list for the account.
deleteDELETEaccount_id, ip_access_list_idDeletes an IP access list, specified by its list ID.
updateUPDATEaccount_id, ip_access_list_idUpdates an existing IP access list, specified by its ID.
replaceREPLACEaccount_id, ip_access_list_idReplaces 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_account.settings.ip_access_lists
WHERE account_id = '{{ account_id }}';

INSERT example

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

/*+ create */
INSERT INTO databricks_account.settings.ip_access_lists (
account_id,
data__label,
data__list_type,
data__ip_addresses
)
SELECT
'{{ account_id }}',
'{{ 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_account.settings.ip_access_lists
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE account_id = '{{ account_id }}' AND
ip_access_list_id = '{{ ip_access_list_id }}';

REPLACE example

Replaces a ip_access_lists resource.

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

DELETE example

Deletes a ip_access_lists resource.

/*+ delete */
DELETE FROM databricks_account.settings.ip_access_lists
WHERE account_id = '{{ account_id }}' AND
ip_access_list_id = '{{ ip_access_list_id }}';