restrict_admins
Operations on a restrict_admins
resource.
Overview
Name | restrict_admins |
Type | Resource |
Id | databricks_workspace.workspace.restrict_admins |
Fields
Name | Datatype |
---|---|
etag | string |
restrict_workspace_admins | object |
setting_name | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deployment_name | Gets the restrict workspace admins setting. |
delete | DELETE | deployment_name | Reverts the restrict workspace admins setting status for the workspace. A fresh etag needs to be provided in |
update | UPDATE | deployment_name | Updates 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 }}';