Skip to main content

experiment_permissions

Creates, updates, deletes, gets or lists an experiment_permissions resource.

Overview

Nameexperiment_permissions
TypeResource
Iddatabricks_workspace.ml.experiment_permissions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
object_idstring
access_control_listarray
object_typestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectexperiment_id, deployment_nameGets the permissions of an experiment. Experiments can inherit permissions from their root object.
updateupdateexperiment_id, deployment_nameUpdates the permissions on an experiment. Experiments can inherit permissions from their root object.
setreplaceexperiment_id, deployment_nameSets permissions on an object, replacing existing permissions if they exist. Deletes all direct

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.

NameDatatypeDescription
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
experiment_idstringThe experiment for which to get or manage permissions.

SELECT examples

Gets the permissions of an experiment. Experiments can inherit permissions from their root object.

SELECT
object_id,
access_control_list,
object_type
FROM databricks_workspace.ml.experiment_permissions
WHERE experiment_id = '{{ experiment_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

UPDATE examples

Updates the permissions on an experiment. Experiments can inherit permissions from their root object.

UPDATE databricks_workspace.ml.experiment_permissions
SET
access_control_list = '{{ access_control_list }}'
WHERE
experiment_id = '{{ experiment_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
RETURNING
object_id,
access_control_list,
object_type;

REPLACE examples

Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct

REPLACE databricks_workspace.ml.experiment_permissions
SET
access_control_list = '{{ access_control_list }}'
WHERE
experiment_id = '{{ experiment_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
RETURNING
object_id,
access_control_list,
object_type;