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 AI Search endpoint
budget_policy_idstring
effective_budget_policy_idstringThe budget policy id applied to the endpoint
creation_timestampintegerTimestamp of endpoint creation
creatorstringCreator of the endpoint
â–¶custom_tagsarrayThe custom tags assigned to the endpoint
â–¶endpoint_statusobjectCurrent status of the endpoint
endpoint_typestringType of endpoint (STANDARD, STORAGE_OPTIMIZED)
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_name, workspace_domainGet details for a single AI Search endpoint.
listselectdeployment_name, workspace_domainpage_tokenList all AI Search endpoints in the workspace.
createinsertdeployment_name, workspace_domain, name, endpoint_typeCreate a new endpoint.
deletedeleteendpoint_name, deployment_name, workspace_domainDelete an AI Search endpoint.
retrieve_user_visible_metricsexecname, deployment_name, workspace_domainRetrieve user-visible metrics for an endpoint
startexecendpoint_name, deployment_name, workspace_domainStart a stopped endpoint. The endpoint serves the same indexes it had when it stopped.
stopexecendpoint_name, deployment_name, workspace_domainStop an endpoint. Stopping removes the endpoint's serving compute and retains its indexes. A stopped
update_endpoint_budget_policyexecendpoint_name, deployment_name, workspace_domain, budget_policy_idUpdate the budget policy of an endpoint
update_endpoint_custom_tagsexecendpoint_name, deployment_name, workspace_domain, 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: the host prefix of the workspace URL (dbc-abcd0123-a1bc on AWS, adb-1234567890123456.7 on Azure, 1234567890123456.7 on GCP). Set DATABRICKS_DEPLOYMENT_NAME to default it for the session. (default: dbc-abcd0123-a1bc, x-stackQL-envVar: DATABRICKS_DEPLOYMENT_NAME)
endpoint_namestringName of the AI Search endpoint
namestringAI Search endpoint name
workspace_domainstringThe Databricks workspace domain suffix for the cloud. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws). (default: cloud.databricks.com, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"cloud.databricks.com","azure":"azuredatabricks.net","gcp":"gcp.databricks.com"}})
page_tokenstringToken for pagination

SELECT examples​

Get details for a single AI Search endpoint.

SELECT
id,
name,
budget_policy_id,
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
AND workspace_domain = '{{ workspace_domain }}' -- required
;

INSERT examples​

Create a new endpoint.

INSERT INTO databricks_workspace.vectorsearch.endpoints (
name,
endpoint_type,
budget_policy_id,
target_qps,
usage_policy_id,
deployment_name,
workspace_domain
)
SELECT
'{{ name }}' /* required */,
'{{ endpoint_type }}' /* required */,
'{{ budget_policy_id }}',
{{ target_qps }},
'{{ usage_policy_id }}',
'{{ deployment_name }}',
'{{ workspace_domain }}'
RETURNING
id,
name,
budget_policy_id,
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 an AI Search endpoint.

DELETE FROM databricks_workspace.vectorsearch.endpoints
WHERE endpoint_name = '{{ endpoint_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND workspace_domain = '{{ workspace_domain }}' --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,
@workspace_domain='{{ workspace_domain }}' --required
@@json=
'{
"end_time": "{{ end_time }}",
"granularity_in_seconds": {{ granularity_in_seconds }},
"metrics": "{{ metrics }}",
"page_token": "{{ page_token }}",
"start_time": "{{ start_time }}"
}'
;