permissions
Creates, updates, deletes, gets or lists a permissions
resource.
Overview
Name | permissions |
Type | Resource |
Id | databricks_workspace.workspace.permissions |
Fields
The following fields are returned by SELECT
queries:
- get
Request completed successfully.
Name | Datatype | Description |
---|---|---|
setting_name | string | |
etag | string | |
namespace | object |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | deployment_name | Gets the default namespace setting. | |
update | update | deployment_name | Updates the default namespace setting for the workspace. A fresh etag needs to be provided in | |
delete | delete | deployment_name | Deletes the default namespace setting for the workspace. A fresh etag needs to be provided in |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- get
Gets the default namespace setting.
SELECT
setting_name,
etag,
namespace
FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}' -- required;
UPDATE
examples
- update
Updates the default namespace setting for the workspace. A fresh etag needs to be provided in
UPDATE databricks_workspace.workspace.permissions
SET
data__allow_missing = '{{ allow_missing }}',
data__field_mask = {{ field_mask }},
data__setting = '{{ setting }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
RETURNING
setting_name,
etag,
namespace;
DELETE
examples
- delete
Deletes the default namespace setting for the workspace. A fresh etag needs to be provided in
DELETE FROM databricks_workspace.workspace.permissions
WHERE deployment_name = '{{ deployment_name }}' --required;