Skip to main content

endpoints

Operations on a endpoints resource.

Overview

Nameendpoints
TypeResource
Iddatabricks_workspace.vectorsearch.endpoints

Fields

NameDatatype
idstring
namestring
creation_timestampinteger
creatorstring
endpoint_statusobject
endpoint_typestring
last_updated_timestampinteger
last_updated_userstring
num_indexesinteger

Methods

NameAccessible byRequired ParamsDescription
getendpointSELECTendpoint_name, deployment_name
listendpointsSELECTdeployment_name
createendpointINSERTdeployment_nameCreate a new endpoint.
deleteendpointDELETEendpoint_name, deployment_name

SELECT examples

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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new endpoints resource.

/*+ create */
INSERT INTO databricks_workspace.vectorsearch.endpoints (
deployment_name,
data__name,
data__endpoint_type
)
SELECT
'{{ deployment_name }}',
'{{ name }}',
'{{ endpoint_type }}'
;

DELETE example

Deletes a endpoints resource.

/*+ delete */
DELETE FROM databricks_workspace.vectorsearch.endpoints
WHERE endpoint_name = '{{ endpoint_name }}' AND
deployment_name = '{{ deployment_name }}';