serving_endpoint_permissions
Creates, updates, deletes, gets or lists a serving_endpoint_permissions resource.
Overview
| Name | serving_endpoint_permissions |
| Type | Resource |
| Id | databricks_workspace.serving.serving_endpoint_permissions |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
object_id | string | |
access_control_list | array | |
object_type | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | serving_endpoint_id, deployment_name | Gets the permissions of a serving endpoint. Serving endpoints can inherit permissions from their root | |
update | update | serving_endpoint_id, deployment_name | Updates the permissions on a serving endpoint. Serving endpoints can inherit permissions from their | |
set | replace | serving_endpoint_id, deployment_name | Sets 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.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
serving_endpoint_id | string | The serving endpoint for which to get or manage permissions. |
SELECT examples
- get
Gets the permissions of a serving endpoint. Serving endpoints can inherit permissions from their root
SELECT
object_id,
access_control_list,
object_type
FROM databricks_workspace.serving.serving_endpoint_permissions
WHERE serving_endpoint_id = '{{ serving_endpoint_id }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;
UPDATE examples
- update
Updates the permissions on a serving endpoint. Serving endpoints can inherit permissions from their
UPDATE databricks_workspace.serving.serving_endpoint_permissions
SET
access_control_list = '{{ access_control_list }}'
WHERE
serving_endpoint_id = '{{ serving_endpoint_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
RETURNING
object_id,
access_control_list,
object_type;
REPLACE examples
- set
Sets permissions on an object, replacing existing permissions if they exist. Deletes all direct
REPLACE databricks_workspace.serving.serving_endpoint_permissions
SET
access_control_list = '{{ access_control_list }}'
WHERE
serving_endpoint_id = '{{ serving_endpoint_id }}' --required
AND deployment_name = '{{ deployment_name }}' --required
RETURNING
object_id,
access_control_list,
object_type;