endpoints
Creates, updates, deletes, gets or lists an endpoints resource.
Overview
| Name | endpoints |
| Type | Resource |
| Id | databricks_workspace.vectorsearch.endpoints |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Unique identifier of the endpoint |
name | string | Name of the vector search endpoint |
effective_budget_policy_id | string | The budget policy id applied to the endpoint |
creation_timestamp | integer | |
creator | string | Creator of the endpoint |
custom_tags | array | The custom tags assigned to the endpoint |
endpoint_status | object | Current status of the endpoint |
endpoint_type | string | Type of endpoint (STANDARD) |
last_updated_timestamp | integer | Timestamp of last update to the endpoint |
last_updated_user | string | User who last updated the endpoint |
num_indexes | integer | Number of indexes on the endpoint |
scaling_info | object | Scaling information for the endpoint |
| Name | Datatype | Description |
|---|---|---|
id | string | Unique identifier of the endpoint |
name | string | Name of the vector search endpoint |
effective_budget_policy_id | string | The budget policy id applied to the endpoint |
creation_timestamp | integer | |
creator | string | Creator of the endpoint |
custom_tags | array | The custom tags assigned to the endpoint |
endpoint_status | object | Current status of the endpoint |
endpoint_type | string | Type of endpoint (STANDARD) |
last_updated_timestamp | integer | Timestamp of last update to the endpoint |
last_updated_user | string | User who last updated the endpoint |
num_indexes | integer | Number of indexes on the endpoint |
scaling_info | object | Scaling information for the endpoint |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | endpoint_name, deployment_name | Get details for a single vector search endpoint. | |
list | select | deployment_name | page_token | List all vector search endpoints in the workspace. |
create | insert | deployment_name, name, endpoint_type | Create a new endpoint. | |
delete | delete | endpoint_name, deployment_name | Delete a vector search endpoint. | |
retrieve_user_visible_metrics | exec | name, deployment_name | Retrieve user-visible metrics for an endpoint | |
update_endpoint_budget_policy | exec | endpoint_name, deployment_name, budget_policy_id | Update the budget policy of an endpoint | |
update_endpoint_custom_tags | exec | endpoint_name, deployment_name, custom_tags | Update 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.
| Name | Datatype | Description |
|---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
endpoint_name | string | Name of the vector search endpoint |
name | string | Vector search endpoint name |
page_token | string | Token for pagination |
SELECT examples
- get
- list
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
;
List all vector search endpoints in the workspace.
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 deployment_name = '{{ deployment_name }}' -- required
AND page_token = '{{ page_token }}'
;
INSERT examples
- create
- Manifest
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
;
# Description fields are for documentation purposes
- name: endpoints
props:
- name: deployment_name
value: "{{ deployment_name }}"
description: Required parameter for the endpoints resource.
- name: name
value: "{{ name }}"
description: |
Name of the vector search endpoint
- name: endpoint_type
value: "{{ endpoint_type }}"
description: |
Type of endpoint
- name: budget_policy_id
value: "{{ budget_policy_id }}"
description: |
The budget policy id to be applied
- name: min_qps
value: {{ min_qps }}
description: |
Min QPS for the endpoint. Mutually exclusive with num_replicas. The actual replica count is calculated at index creation/sync time based on this value.
DELETE examples
- delete
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
- update_endpoint_budget_policy
- update_endpoint_custom_tags
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 }}"
}'
;
Update the budget policy of an endpoint
EXEC databricks_workspace.vectorsearch.endpoints.update_endpoint_budget_policy
@endpoint_name='{{ endpoint_name }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"budget_policy_id": "{{ budget_policy_id }}"
}'
;
Update the custom tags of an endpoint.
EXEC databricks_workspace.vectorsearch.endpoints.update_endpoint_custom_tags
@endpoint_name='{{ endpoint_name }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"custom_tags": "{{ custom_tags }}"
}'
;