MLflow models
Get latest model versions
Get the latest versions for a registered model.
POST
/
api
/
2.0
/
mlflow
/
registered-models
/
get-latest-versions
cURL
curl --request POST \
--url https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"stages": [
"<string>"
]
}
'import requests
url = "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions"
payload = {
"name": "<string>",
"stages": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', stages: ['<string>']})
};
fetch('https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'stages' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"model_versions": [
{
"name": "<string>",
"version": "<string>",
"creation_timestamp": 123,
"last_updated_timestamp": 123,
"current_stage": "<string>",
"description": "<string>",
"source": "<string>",
"status": "PENDING_REGISTRATION",
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"user_id": "<string>",
"run_id": "<string>",
"status_message": "<string>",
"run_link": "<string>",
"aliases": [
"<string>"
]
}
]
}{
"error_code": "INTERNAL_ERROR",
"message": "<string>"
}Body
application/json
Response
Latest version models for each requests stage.
Latest version models for each requests stage. Only return models with current READY status. If no stages provided, returns the latest version for each stage, including "None".
Show child attributes
Show child attributes
Was this page helpful?
⌘I
cURL
curl --request POST \
--url https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"stages": [
"<string>"
]
}
'import requests
url = "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions"
payload = {
"name": "<string>",
"stages": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', stages: ['<string>']})
};
fetch('https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'stages' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/2.0/mlflow/registered-models/get-latest-versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"stages\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"model_versions": [
{
"name": "<string>",
"version": "<string>",
"creation_timestamp": 123,
"last_updated_timestamp": 123,
"current_stage": "<string>",
"description": "<string>",
"source": "<string>",
"status": "PENDING_REGISTRATION",
"tags": [
{
"key": "<string>",
"value": "<string>"
}
],
"user_id": "<string>",
"run_id": "<string>",
"status_message": "<string>",
"run_link": "<string>",
"aliases": [
"<string>"
]
}
]
}{
"error_code": "INTERNAL_ERROR",
"message": "<string>"
}