Get Versions
curl --request GET \
--url https://cloud.onyx.app/api/versionsimport requests
url = "https://cloud.onyx.app/api/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud.onyx.app/api/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://cloud.onyx.app/api/versions",
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 := "https://cloud.onyx.app/api/versions"
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("https://cloud.onyx.app/api/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.onyx.app/api/versions")
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_body{
"stable": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"dev": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"migration": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
}
}Miscellaneous
Get Latest App Version Tags
Fetches the latest stable and beta versions of Onyx Docker images. Since DockerHub does not explicitly flag stable and beta images, this endpoint can be used to programmatically check for new images.
GET
/
versions
Get Versions
curl --request GET \
--url https://cloud.onyx.app/api/versionsimport requests
url = "https://cloud.onyx.app/api/versions"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud.onyx.app/api/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://cloud.onyx.app/api/versions",
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 := "https://cloud.onyx.app/api/versions"
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("https://cloud.onyx.app/api/versions")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.onyx.app/api/versions")
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_body{
"stable": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"dev": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
},
"migration": {
"onyx": "<string>",
"relational_db": "<string>",
"index": "<string>",
"nginx": "<string>"
}
}⌘I