Skip to main content

model_web_hooks

Creates, updates, deletes, gets or lists a model_web_hooks resource.

Overview

Namemodel_web_hooks
TypeResource
Iddatabricks_workspace.machinelearning.model_web_hooks

Fields

The following fields are returned by SELECT queries:

Registry webhooks listed successfully.

NameDatatypeDescription
idstring
model_namestring
creation_timestampinteger
descriptionstring
eventsarray
http_url_specobject
last_updated_timestampinteger
statusstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listwebhooksselectdeployment_nameThis endpoint is in Public Preview.
createwebhookinsertdeployment_name: This endpoint is in Public Preview.
updatewebhookupdatedeployment_nameThis endpoint is in Public Preview.
deletewebhookdeletedeployment_nameThis endpoint is in Public Preview.
testregistrywebhookexecdeployment_nameThis endpoint is in Public Preview.

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)

SELECT examples

This endpoint is in Public Preview.

SELECT
id,
model_name,
creation_timestamp,
description,
events,
http_url_spec,
last_updated_timestamp,
status
FROM databricks_workspace.machinelearning.model_web_hooks
WHERE deployment_name = '{{ deployment_name }}' -- required;

INSERT examples

: This endpoint is in Public Preview.

INSERT INTO databricks_workspace.machinelearning.model_web_hooks (
data__events,
data__model_name,
data__description,
data__status,
data__job_spec,
data__http_url_spec,
deployment_name
)
SELECT
'{{ events }}',
'{{ model_name }}',
'{{ description }}',
'{{ status }}',
'{{ job_spec }}',
'{{ http_url_spec }}',
'{{ deployment_name }}'
RETURNING
webhook
;

UPDATE examples

This endpoint is in Public Preview.

UPDATE databricks_workspace.machinelearning.model_web_hooks
SET
data__id = '{{ id }}',
data__events = '{{ events }}',
data__description = '{{ description }}',
data__status = '{{ status }}',
data__http_url_spec = '{{ http_url_spec }}',
data__job_spec = '{{ job_spec }}'
WHERE
deployment_name = '{{ deployment_name }}' --required
RETURNING
webhook;

DELETE examples

This endpoint is in Public Preview.

DELETE FROM databricks_workspace.machinelearning.model_web_hooks
WHERE deployment_name = '{{ deployment_name }}' --required;

Lifecycle Methods

This endpoint is in Public Preview.

EXEC databricks_workspace.machinelearning.model_web_hooks.testregistrywebhook 
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"id": "{{ id }}",
"event": "{{ event }}"
}';