Skip to main content

endpoints

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

Overview

Nameendpoints
TypeResource
Iddatabricks_workspace.vectorsearch.endpoints

Fields

The following fields are returned by SELECT queries:

Details of the endpoint.

NameDatatypeDescription
idstring
namestring
creation_timestampinteger
creatorstring
endpoint_statusobject
endpoint_typestring
last_updated_timestampinteger
last_updated_userstring
num_indexesinteger

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getendpointselectdeployment_name
listendpointsselectdeployment_name
createendpointinsertdeployment_nameCreate a new endpoint.
deleteendpointdeletedeployment_name

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

Details of the endpoint.

SELECT
id,
name,
creation_timestamp,
creator,
endpoint_status,
endpoint_type,
last_updated_timestamp,
last_updated_user,
num_indexes
FROM databricks_workspace.vectorsearch.endpoints
WHERE deployment_name = '{{ deployment_name }}' -- required;

INSERT examples

Create a new endpoint.

INSERT INTO databricks_workspace.vectorsearch.endpoints (
data__name,
data__endpoint_type,
deployment_name
)
SELECT
'{{ name }}',
'{{ endpoint_type }}',
'{{ deployment_name }}'
RETURNING
id,
name,
creation_timestamp,
creator,
endpoint_status,
endpoint_type,
last_updated_timestamp,
last_updated_user
;

DELETE examples

No description available.

DELETE FROM databricks_workspace.vectorsearch.endpoints
WHERE deployment_name = '{{ deployment_name }}' --required;