Skip to main content

serving_endpoints_permissions

Operations on a serving_endpoints_permissions resource.

Overview

Nameserving_endpoints_permissions
TypeResource
Iddatabricks_workspace.realtimeserving.serving_endpoints_permissions

Fields

NameDatatype
access_control_listarray
object_idstring
object_typestring

Methods

NameAccessible byRequired ParamsDescription
getpermissionsSELECTserving_endpoint_id, deployment_nameGets the permissions of a serving endpoint. Serving endpoints can inherit permissions from their root object.
updatepermissionsUPDATEserving_endpoint_id, deployment_nameUpdates the permissions on a serving endpoint. Serving endpoints can inherit permissions from their root object.
setpermissionsREPLACEserving_endpoint_id, deployment_nameSets permissions on an object, replacing existing permissions if they exist. Deletes all direct permissions if none are specified. Objects can inherit permissions from their root object.

SELECT examples

SELECT
access_control_list,
object_id,
object_type
FROM databricks_workspace.realtimeserving.serving_endpoints_permissions
WHERE serving_endpoint_id = '{{ serving_endpoint_id }}' AND
deployment_name = '{{ deployment_name }}';

UPDATE example

Updates a serving_endpoints_permissions resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
UPDATE databricks_workspace.realtimeserving.serving_endpoints_permissions
SET field1 = '{{ value1 }}',
field2 = '{{ value2 }}', ...
WHERE serving_endpoint_id = '{{ serving_endpoint_id }}' AND
deployment_name = '{{ deployment_name }}';

REPLACE example

Replaces a serving_endpoints_permissions resource.

/*+ update */
-- replace field1, field2, etc. with the fields you want to update
REPLACE databricks_workspace.realtimeserving.serving_endpoints_permissions
SET field1 = '{ value1 }',
field2 = '{ value2 }', ...
WHERE serving_endpoint_id = '{{ serving_endpoint_id }}' AND
deployment_name = '{{ deployment_name }}';