Skip to main content

restrict_admins

Operations on a restrict_admins resource.

Overview

Namerestrict_admins
TypeResource
Iddatabricks_workspace.workspace.restrict_admins

Fields

NameDatatype
etagstring
restrict_workspace_adminsobject
setting_namestring

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeployment_nameGets the restrict workspace admins setting.
deleteDELETEdeployment_nameReverts the restrict workspace admins setting status for the workspace. A fresh etag needs to be provided in
updateUPDATEdeployment_nameUpdates the restrict workspace admins setting for the workspace. A fresh etag needs to be provided in

SELECT examples

SELECT
etag,
restrict_workspace_admins,
setting_name
FROM databricks_workspace.workspace.restrict_admins
WHERE deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a restrict_admins resource.

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

DELETE example

Deletes a restrict_admins resource.

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