model_latest_versions
Creates, updates, deletes, gets or lists a model_latest_versions
resource.
Overview
Name | model_latest_versions |
Type | Resource |
Id | databricks_workspace.machinelearning.model_latest_versions |
Fields
The following fields are returned by SELECT
queries:
- getlatestversions
Name | Datatype | Description |
---|---|---|
name | string | |
run_id | string | |
user_id | string | |
creation_timestamp | integer | |
current_stage | string | |
description | string | |
last_updated_timestamp | integer | |
run_link | string | |
source | string | |
status | string | |
status_message | string | |
tags | array | |
version | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
getlatestversions | select | deployment_name | Gets the latest version of a registered model. |
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) |
SELECT
examples
- getlatestversions
Gets the latest version of a registered model.
SELECT
name,
run_id,
user_id,
creation_timestamp,
current_stage,
description,
last_updated_timestamp,
run_link,
source,
status,
status_message,
tags,
version
FROM databricks_workspace.machinelearning.model_latest_versions
WHERE deployment_name = '{{ deployment_name }}' -- required;