curl --request GET \
--url https://api.kombify.io/v1/homelab/api/v1/inventory/updates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/inventory/updates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kombify.io/v1/homelab/api/v1/inventory/updates', 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://api.kombify.io/v1/homelab/api/v1/inventory/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.kombify.io/v1/homelab/api/v1/inventory/updates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kombify.io/v1/homelab/api/v1/inventory/updates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/inventory/updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"version": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"servers": [
{
"server_id": "<string>",
"os": {
"state": "reported",
"reason_code": "<string>",
"pending_security_updates": 123,
"reboot_required": true,
"last_unattended_run": "2023-11-07T05:31:56Z"
},
"services": {
"compared": 123,
"not_compared": 123,
"available": [
{
"service_id": "<string>",
"name": "<string>",
"latest": "<string>",
"update_mode": "stackkit_upgrade",
"current": "<string>",
"source": "image_tag",
"update_setting": "ask",
"tested": true,
"advisories": [
{
"id": "<string>",
"severity": "critical",
"url": "<string>",
"affects": "installed",
"high": true,
"cvss": 123,
"fixed_version": "<string>"
}
],
"security_fix": {
"version": "<string>",
"tested": true,
"advisories": [
"<string>"
],
"digest": "<string>",
"release_notes_url": "<string>",
"published_at": "<string>"
}
}
],
"not_verified": 123,
"vulnerable": [
{
"service_id": "<string>",
"name": "<string>",
"advisories": [
{
"id": "<string>",
"severity": "critical",
"url": "<string>",
"affects": "installed",
"high": true,
"cvss": 123,
"fixed_version": "<string>"
}
],
"current": "<string>"
}
]
}
}
],
"scope_state": "<string>"
},
"meta": {
"total": 123,
"page": 123,
"per_page": 123,
"managed_runtime_inventory_complete": true,
"worker_inventory_sha256": "<string>",
"managed_runtime_active_lease_ids": [
"<string>"
],
"managed_runtime_inactive_lease_ids": [
"<string>"
],
"managed_runtime_lease_generation_digests": [
{
"lease_id": "<string>",
"resource_generation_digest": "<string>"
}
],
"managed_runtime_duplicate_lease_ids": [
"<string>"
],
"managed_runtime_attachment_conflict_lease_ids": [
"<string>"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Read available operating-system and service updates of the authenticated owner's servers
Per visible server: the operating-system update facts the Guard reports and every service with a newer version. A service whose update_mode is stackkit_upgrade is updated with the service update action (run_managed_service_action): the governed upgrade of its stack’s StackKits release, which keeps a restore point, verifies the target live and automatically returns to the previous release when that verification fails. All managed services of one server share that release, so one update of any of them updates them all; get_job reads its update_outcome. adopt_required services must be adopted first. A service whose version was not compared is counted in not_compared, never reported as up to date. A StackKits-managed application also carries the verified application release feed facts: application_update (a security fix in every setting, else the newest checked version; the update action with version and digest moves only that application and get_job reads its application_update_outcome), bundled (arrives with a StackKits release), advisories, security_fix, and not_verified / vulnerable per server.
curl --request GET \
--url https://api.kombify.io/v1/homelab/api/v1/inventory/updates \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/inventory/updates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.kombify.io/v1/homelab/api/v1/inventory/updates', 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://api.kombify.io/v1/homelab/api/v1/inventory/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.kombify.io/v1/homelab/api/v1/inventory/updates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.kombify.io/v1/homelab/api/v1/inventory/updates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/inventory/updates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"version": "<string>",
"generated_at": "2023-11-07T05:31:56Z",
"servers": [
{
"server_id": "<string>",
"os": {
"state": "reported",
"reason_code": "<string>",
"pending_security_updates": 123,
"reboot_required": true,
"last_unattended_run": "2023-11-07T05:31:56Z"
},
"services": {
"compared": 123,
"not_compared": 123,
"available": [
{
"service_id": "<string>",
"name": "<string>",
"latest": "<string>",
"update_mode": "stackkit_upgrade",
"current": "<string>",
"source": "image_tag",
"update_setting": "ask",
"tested": true,
"advisories": [
{
"id": "<string>",
"severity": "critical",
"url": "<string>",
"affects": "installed",
"high": true,
"cvss": 123,
"fixed_version": "<string>"
}
],
"security_fix": {
"version": "<string>",
"tested": true,
"advisories": [
"<string>"
],
"digest": "<string>",
"release_notes_url": "<string>",
"published_at": "<string>"
}
}
],
"not_verified": 123,
"vulnerable": [
{
"service_id": "<string>",
"name": "<string>",
"advisories": [
{
"id": "<string>",
"severity": "critical",
"url": "<string>",
"affects": "installed",
"high": true,
"cvss": 123,
"fixed_version": "<string>"
}
],
"current": "<string>"
}
]
}
}
],
"scope_state": "<string>"
},
"meta": {
"total": 123,
"page": 123,
"per_page": 123,
"managed_runtime_inventory_complete": true,
"worker_inventory_sha256": "<string>",
"managed_runtime_active_lease_ids": [
"<string>"
],
"managed_runtime_inactive_lease_ids": [
"<string>"
],
"managed_runtime_lease_generation_digests": [
{
"lease_id": "<string>",
"resource_generation_digest": "<string>"
}
],
"managed_runtime_duplicate_lease_ids": [
"<string>"
],
"managed_runtime_attachment_conflict_lease_ids": [
"<string>"
]
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}