permissions
Operations on a permissions
resource.
Overview
Name | permissions |
Type | Resource |
Id | databricks_workspace.workspace.permissions |
Fields
Name | Datatype |
---|---|
etag | string |
namespace | object |
setting_name | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | deployment_name | Gets the default namespace setting. |
delete | DELETE | deployment_name | Deletes the default namespace setting for the workspace. A fresh etag needs to be provided in |
update | UPDATE | deployment_name | Updates the default namespace setting for the workspace. A fresh etag needs to be provided in |
SELECT
examples
SELECT
etag,
namespace,
setting_name
FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}';
UPDATE
example
Updates a permissions
resource.
/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.workspace.permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE deployment_name = '{{ deployment_name }}';
DELETE
example
Deletes a permissions
resource.
/*+ delete */
DELETE FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}';