endpoints
Operations on a endpoints
resource.
Overview
Name | endpoints |
Type | Resource |
Id | databricks_workspace.vectorsearch.endpoints |
Fields
Name | Datatype |
---|---|
id | string |
name | string |
creation_timestamp | integer |
creator | string |
endpoint_status | object |
endpoint_type | string |
last_updated_timestamp | integer |
last_updated_user | string |
num_indexes | integer |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getendpoint | SELECT | endpoint_name, deployment_name | |
listendpoints | SELECT | deployment_name | |
createendpoint | INSERT | deployment_name | Create a new endpoint. |
deleteendpoint | DELETE | endpoint_name, deployment_name |
SELECT
examples
- endpoints (listendpoints)
- endpoints (getendpoint)
SELECT
id,
name,
creation_timestamp,
creator,
endpoint_status,
endpoint_type,
last_updated_timestamp,
last_updated_user,
num_indexes
FROM databricks_workspace.vectorsearch.endpoints
WHERE deployment_name = '{{ deployment_name }}';
SELECT
id,
name,
creation_timestamp,
creator,
endpoint_status,
endpoint_type,
last_updated_timestamp,
last_updated_user,
num_indexes
FROM databricks_workspace.vectorsearch.endpoints
WHERE endpoint_name = '{{ endpoint_name }}' AND
deployment_name = '{{ deployment_name }}';
INSERT
example
Use the following StackQL query and manifest file to create a new endpoints
resource.
- endpoints
- Manifest
/*+ create */
INSERT INTO databricks_workspace.vectorsearch.endpoints (
deployment_name,
data__name,
data__endpoint_type
)
SELECT
'{{ deployment_name }}',
'{{ name }}',
'{{ endpoint_type }}'
;
- name: your_resource_model_name
props:
- name: name
value: docs-endpoint
- name: endpoint_type
value: STANDARD
DELETE
example
Deletes a endpoints
resource.
/*+ delete */
DELETE FROM databricks_workspace.vectorsearch.endpoints
WHERE endpoint_name = '{{ endpoint_name }}' AND
deployment_name = '{{ deployment_name }}';