Skip to main content

endpoints

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

Overview

Nameendpoints
TypeResource
Iddatabricks_workspace.aisearch.endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier of the endpoint
namestringName of the AI Search endpoint. Server-assigned full resource path (``workspaces/{workspace}/endpoints/{endpoint}``) on output. On create, the user-supplied short name is conveyed via ``CreateEndpointRequest.endpoint_id``; the server composes the full ``name`` and returns it on the response.
budget_policy_idstringThe user-selected budget policy id for the endpoint.
effective_budget_policy_idstringThe budget policy id applied to the endpoint
usage_policy_idstringThe usage policy id applied to the endpoint.
create_timestring (date-time)Time the endpoint was created.
creatorstringCreator of the endpoint
custom_tagsarrayThe custom tags assigned to the endpoint
endpoint_statusobjectCurrent status of the endpoint
endpoint_typestringType of endpoint. Required on create and immutable thereafter. (STANDARD, STORAGE_OPTIMIZED)
index_countintegerNumber of indexes on the endpoint
last_updated_userstringUser who last updated the endpoint
replica_countintegerThe client-supplied desired number of replicas for the endpoint, applied at create/update time. Mutually exclusive with ``target_qps``.
scaling_infoobjectScaling information for the endpoint
target_qpsintegerTarget QPS for the endpoint. Mutually exclusive with ``replica_count``. Best-effort; the system does not guarantee this QPS will be achieved.
throughput_infoobjectThroughput information for the endpoint
update_timestring (date-time)Time the endpoint was last updated.
warningsarrayAdvisory warnings surfaced when target_qps is set on a Standard endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectparent, deployment_namepage_size, page_tokenList AI Search endpoints in a workspace.
createinsertparent, deployment_name, endpointendpoint_idCreate a new AI Search endpoint.
updateupdatename, update_mask, deployment_name, endpointUpdate an existing AI Search endpoint. Multi-bucket masks are supported and dispatched in

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)
namestringName of the AI Search endpoint. Server-assigned full resource path (workspaces/{workspace}/endpoints/{endpoint}) on output. On create, the user-supplied short name is conveyed via CreateEndpointRequest.endpoint_id; the server composes the full name and returns it on the response.
parentstringThe Workspace where this Endpoint will be created. Format: workspaces/{workspace_id}
update_maskobjectThe list of fields to update.
endpoint_idstringThe user-supplied short name for the Endpoint, per AIP-133. The server composes the full Endpoint.name as {parent}/endpoints/{endpoint_id}. AIP-133 does not list endpoint_id as a fields-may-be-required entry, so we annotate it OPTIONAL on the wire; the server still rejects empty values with INVALID_PARAMETER_VALUE.
page_sizeintegerBest-effort upper bound on the number of results to return. Honored as an upper bound by the shim: page_size only narrows the legacy backend's response, never widens it, so the practical cap is min(page_size, legacy_fixed_page_size).
page_tokenstringPage token from a previous response. If not provided, returns the first page.

SELECT examples

List AI Search endpoints in a workspace.

SELECT
id,
name,
budget_policy_id,
effective_budget_policy_id,
usage_policy_id,
create_time,
creator,
custom_tags,
endpoint_status,
endpoint_type,
index_count,
last_updated_user,
replica_count,
scaling_info,
target_qps,
throughput_info,
update_time,
warnings
FROM databricks_workspace.aisearch.endpoints
WHERE parent = '{{ parent }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND page_size = '{{ page_size }}'
AND page_token = '{{ page_token }}'
;

INSERT examples

Create a new AI Search endpoint.

INSERT INTO databricks_workspace.aisearch.endpoints (
endpoint,
parent,
deployment_name,
endpoint_id
)
SELECT
'{{ endpoint }}' /* required */,
'{{ parent }}',
'{{ deployment_name }}',
'{{ endpoint_id }}'
RETURNING
id,
name,
budget_policy_id,
effective_budget_policy_id,
usage_policy_id,
create_time,
creator,
custom_tags,
endpoint_status,
endpoint_type,
index_count,
last_updated_user,
replica_count,
scaling_info,
target_qps,
throughput_info,
update_time,
warnings
;

UPDATE examples

Update an existing AI Search endpoint. Multi-bucket masks are supported and dispatched in

UPDATE databricks_workspace.aisearch.endpoints
SET
endpoint = '{{ endpoint }}'
WHERE
name = '{{ name }}' --required
AND update_mask = '{{ update_mask }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND endpoint = '{{ endpoint }}' --required
RETURNING
id,
name,
budget_policy_id,
effective_budget_policy_id,
usage_policy_id,
create_time,
creator,
custom_tags,
endpoint_status,
endpoint_type,
index_count,
last_updated_user,
replica_count,
scaling_info,
target_qps,
throughput_info,
update_time,
warnings;