curl
curl --location --request GET 'http://oc1-lts0:9090/v1/version' \
--header 'Accept: application/json'import requests
url = "http://oc1-lts0:9090/v1/version"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://oc1-lts0:9090/v1/version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9090",
CURLOPT_URL => "http://oc1-lts0:9090/v1/version",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://oc1-lts0:9090/v1/version"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://oc1-lts0:9090/v1/version")
.asString();require 'uri'
require 'net/http'
url = URI("http://oc1-lts0:9090/v1/version")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "24.0.0",
"timestamp": "20231110.212417",
"git_commit": "178ba7a7549bd40c137035c5cd4f10c55fd31b00",
"build_user": "",
"build_type": "DEBUG",
"build_flags": "fb,lld_flags,mcmodel_medium,tls_model_initial_exec"
}System Information REST Endpoints
Get Version
Retrieve the version of the software running.
GET
/
v1
/
version
curl
curl --location --request GET 'http://oc1-lts0:9090/v1/version' \
--header 'Accept: application/json'import requests
url = "http://oc1-lts0:9090/v1/version"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://oc1-lts0:9090/v1/version', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "9090",
CURLOPT_URL => "http://oc1-lts0:9090/v1/version",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://oc1-lts0:9090/v1/version"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://oc1-lts0:9090/v1/version")
.asString();require 'uri'
require 'net/http'
url = URI("http://oc1-lts0:9090/v1/version")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"version": "24.0.0",
"timestamp": "20231110.212417",
"git_commit": "178ba7a7549bd40c137035c5cd4f10c55fd31b00",
"build_user": "",
"build_type": "DEBUG",
"build_flags": "fb,lld_flags,mcmodel_medium,tls_model_initial_exec"
}Last modified on July 8, 2026
Was this page helpful?
⌘I

