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:

NameDatatypeDescription
idstringUnique identifier of the endpoint
namestringName of the vector search endpoint
effective_budget_policy_idstringThe budget policy id applied to the endpoint
creation_timestampinteger
creatorstringCreator of the endpoint
custom_tagsarrayThe custom tags assigned to the endpoint
endpoint_statusobjectCurrent status of the endpoint
endpoint_typestringType of endpoint (STANDARD)
last_updated_timestampintegerTimestamp of last update to the endpoint
last_updated_userstringUser who last updated the endpoint
num_indexesintegerNumber of indexes on the endpoint
scaling_infoobjectScaling information for the endpoint

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectendpoint_name, deployment_nameGet details for a single vector search endpoint.
listselectdeployment_namepage_tokenList all vector search endpoints in the workspace.
createinsertdeployment_name, name, endpoint_typeCreate a new endpoint.
deletedeleteendpoint_name, deployment_nameDelete a vector search endpoint.
retrieve_user_visible_metricsexecname, deployment_nameRetrieve user-visible metrics for an endpoint
update_endpoint_budget_policyexecendpoint_name, deployment_name, budget_policy_idUpdate the budget policy of an endpoint
update_endpoint_custom_tagsexecendpoint_name, deployment_name, custom_tagsUpdate the custom tags of an endpoint.

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)
endpoint_namestringName of the vector search endpoint
namestringVector search endpoint name
page_tokenstringToken for pagination

SELECT examples

Get details for a single vector search endpoint.

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

INSERT examples

Create a new endpoint.

INSERT INTO databricks_workspace.vectorsearch.endpoints (
name,
endpoint_type,
budget_policy_id,
min_qps,
deployment_name
)
SELECT
'{{ name }}' /* required */,
'{{ endpoint_type }}' /* required */,
'{{ budget_policy_id }}',
{{ min_qps }},
'{{ deployment_name }}'
RETURNING
id,
name,
effective_budget_policy_id,
creation_timestamp,
creator,
custom_tags,
endpoint_status,
endpoint_type,
last_updated_timestamp,
last_updated_user,
num_indexes,
scaling_info
;

DELETE examples

Delete a vector search endpoint.

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

Lifecycle Methods

Retrieve user-visible metrics for an endpoint

EXEC databricks_workspace.vectorsearch.endpoints.retrieve_user_visible_metrics 
@name='{{ name }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"end_time": "{{ end_time }}",
"granularity_in_seconds": {{ granularity_in_seconds }},
"metrics": "{{ metrics }}",
"page_token": "{{ page_token }}",
"start_time": "{{ start_time }}"
}'
;