Skip to main content

serving_endpoints_pt

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

Overview

Nameserving_endpoints_pt
TypeResource
Iddatabricks_workspace.serving.serving_endpoints_pt

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertdeployment_name, name, configCreate a new PT serving endpoint.
update_configreplacename, deployment_name, configUpdates any combination of the pt endpoint's served entities, the compute configuration of those

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)
namestringThe name of the pt endpoint to update. This field is required.

INSERT examples

Create a new PT serving endpoint.

INSERT INTO databricks_workspace.serving.serving_endpoints_pt (
name,
config,
ai_gateway,
budget_policy_id,
email_notifications,
tags,
deployment_name
)
SELECT
'{{ name }}' /* required */,
'{{ config }}' /* required */,
'{{ ai_gateway }}',
'{{ budget_policy_id }}',
'{{ email_notifications }}',
'{{ tags }}',
'{{ deployment_name }}'
RETURNING
id,
name,
budget_policy_id,
ai_gateway,
config,
creation_timestamp,
creator,
data_plane_info,
description,
email_notifications,
endpoint_url,
last_updated_timestamp,
pending_config,
permission_level,
route_optimized,
state,
tags,
task
;

REPLACE examples

Updates any combination of the pt endpoint's served entities, the compute configuration of those

REPLACE databricks_workspace.serving.serving_endpoints_pt
SET
config = '{{ config }}'
WHERE
name = '{{ name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND config = '{{ config }}' --required
RETURNING
id,
name,
budget_policy_id,
ai_gateway,
config,
creation_timestamp,
creator,
data_plane_info,
description,
email_notifications,
endpoint_url,
last_updated_timestamp,
pending_config,
permission_level,
route_optimized,
state,
tags,
task;