List all models
import requests
url = "https://{FUSION HOST}/api/ai/ml-models"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION HOST}/api/ai/ml-models")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION HOST}/api/ai/ml-models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION HOST}/api/ai/ml-models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION HOST}/api/ai/ml-models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION HOST}/api/ai/ml-models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION HOST}/api/ai/ml-models{
"models": [
{
"model_id": "lucidworks-sentiment",
"type": "mleap",
"last_modified": "2024-09-13T19:43:20Z"
},
{
"model_id": "opennlp",
"type": "open-nlp",
"last_modified": "2024-09-13T19:43:15Z"
},
{
"model_id": "sentiment-reviews",
"type": "seldon",
"last_modified": "2024-09-13T20:29:05Z"
}
]
}List all models
Get a list of all deployed models.
GET
/
ai
/
ml-models
List all models
import requests
url = "https://{FUSION HOST}/api/ai/ml-models"
response = requests.get(url)
print(response.text)HttpResponse<String> response = Unirest.get("https://{FUSION HOST}/api/ai/ml-models")
.asString();const options = {method: 'GET'};
fetch('https://{FUSION HOST}/api/ai/ml-models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://{FUSION HOST}/api/ai/ml-models")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{FUSION HOST}/api/ai/ml-models"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{FUSION HOST}/api/ai/ml-models",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}curl --request GET \
--url https://{FUSION HOST}/api/ai/ml-models{
"models": [
{
"model_id": "lucidworks-sentiment",
"type": "mleap",
"last_modified": "2024-09-13T19:43:20Z"
},
{
"model_id": "opennlp",
"type": "open-nlp",
"last_modified": "2024-09-13T19:43:15Z"
},
{
"model_id": "sentiment-reviews",
"type": "seldon",
"last_modified": "2024-09-13T20:29:05Z"
}
]
}Response
200 - application/json
OK
Show child attributes
Show child attributes
Was this page helpful?
⌘I