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 AI Search endpoint |
budget_policy_id | string | |
effective_budget_policy_id | string | The budget policy id applied to the endpoint |
creation_timestamp | integer | Timestamp of endpoint creation |
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, STORAGE_OPTIMIZED) |
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 |
throughput_info | object | Throughput information for the endpoint |
| Name | Datatype | Description |
|---|---|---|
id | string | Unique identifier of the endpoint |
name | string | Name of the AI Search endpoint |
budget_policy_id | string | |
effective_budget_policy_id | string | The budget policy id applied to the endpoint |
creation_timestamp | integer | Timestamp of endpoint creation |
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, STORAGE_OPTIMIZED) |
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 |
throughput_info | object | Throughput 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 AI Search endpoint. | |
list | select | deployment_name | page_token | List all AI Search endpoints in the workspace. |
create | insert | deployment_name, name, endpoint_type | Create a new endpoint. | |
delete | delete | endpoint_name, deployment_name | Delete an AI 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 AI Search endpoint |
name | string | AI Search endpoint name |
page_token | string | Token for pagination |
SELECT examples
- get
- list
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,
throughput_info
FROM databricks_workspace.vectorsearch.endpoints
WHERE endpoint_name = '{{ endpoint_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;
List all AI Search endpoints in the workspace.
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,
throughput_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,
num_replicas,
target_qps,
usage_policy_id,
deployment_name
)
SELECT
'{{ name }}' /* required */,
'{{ endpoint_type }}' /* required */,
'{{ budget_policy_id }}',
{{ num_replicas }},
{{ target_qps }},
'{{ usage_policy_id }}',
'{{ deployment_name }}'
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,
throughput_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 AI 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: num_replicas
value: {{ num_replicas }}
description: |
Initial number of replicas for the endpoint. If not specified, defaults to 1.
- name: target_qps
value: {{ target_qps }}
description: |
Target QPS for the endpoint. Mutually exclusive with num_replicas. The actual replica count is calculated at index creation/sync time based on this value. Best-effort target; the system does not guarantee this QPS will be achieved.
- name: usage_policy_id
value: "{{ usage_policy_id }}"
description: |
The usage policy id to be applied once we've migrated to usage policies
DELETE examples
- delete
Delete an AI 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 }}"
}'
;