share_permissions
Creates, updates, deletes, gets or lists a share_permissions
resource.
Overview
Name | share_permissions |
Type | Resource |
Id | databricks_workspace.deltasharing.share_permissions |
Fields
The following fields are returned by SELECT
queries:
- sharepermissions
The share permissions list was successfully retrieved.
Name | Datatype | Description |
---|---|---|
principal | string | |
privileges | array |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
sharepermissions | select | deployment_name | Gets the permissions for a data share from the metastore. The caller must be a metastore admin or the owner of the share. | |
updatepermissions | update | deployment_name | Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an owner of the share. |
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
- sharepermissions
Gets the permissions for a data share from the metastore. The caller must be a metastore admin or the owner of the share.
SELECT
principal,
privileges
FROM databricks_workspace.deltasharing.share_permissions
WHERE deployment_name = '{{ deployment_name }}' -- required;
UPDATE
examples
- updatepermissions
Updates the permissions for a data share in the metastore. The caller must be a metastore admin or an owner of the share.
UPDATE databricks_workspace.deltasharing.share_permissions
SET
data__changes = '{{ changes }}'
WHERE
deployment_name = '{{ deployment_name }}' --required;