curl --request GET \
--url https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state"
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/servers/{serverId}/applied-state', 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/servers/{serverId}/applied-state",
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/servers/{serverId}/applied-state"
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/servers/{serverId}/applied-state")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state")
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": {
"schema_version": "homelab.server-applied-state/v1",
"server_id": "<string>",
"status": "current",
"edition": "public",
"edition_status": "not_recorded",
"workloads": [
{
"workload_ref": "<string>",
"module_refs": [
"<string>"
],
"state": "applied",
"resolution": "catalog",
"use_case": "<string>",
"alternative": "<string>"
}
],
"read_at": "2023-11-07T05:31:56Z",
"kit_deployment_id": "<string>",
"node_ref": "<string>",
"reason_code": "<string>",
"apply_generation": 2,
"recorded_at": "2023-11-07T05:31:56Z",
"release": {
"version": "<string>",
"archive_sha256": "<string>",
"release_index_sha256": "<string>"
},
"plan_hash": "<string>",
"apply_result_hash": "<string>",
"applied_at": "2023-11-07T05:31:56Z",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"evidence_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"changing_job_id": "<string>",
"source": {
"job_id": "<string>",
"operation": "<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 what the last verified apply installed on one server
The applied state of one owned server: the StackKits release, the apply generation and, per workload, its use case, the selected alternative and its state, as the last verified Apply of this server’s node recorded them (a completed rollout or typed Apply whose pinned StackKits result carries the verified Apply summary, or an online Verify by the release recorded for the node, including the Verify dispatched after use-case configuration or removal), bound to the server that held the node then. It never reads the saved spec: what was asked for is the configuration view, not this read. Only status current may be relied on. changing means a lifecycle job of the deployment is running; stale means the newest evidence (evidence_at, a verified Apply or a clean drift check after it) is older than 24 hours (expires_at); unverified means a lifecycle change (upgrade, rollback, use-case configuration or removal, drift reconciliation, application update, service start or stop, restore activation, a relocation into the deployment, a failed or degraded rollout) or a detected drift ran after the last verified Apply, or such a job ended without its outcome being recorded (lifecycle_change_unrecorded, for example a job abandoned after its process stopped), and workloads is empty until an Apply or online Verify of that node verifies again; unavailable means no verified Apply was ever recorded for this server’s node, the record was taken while another server held the node, the server is in no kit deployment, or its node cannot be told apart. apply_generation advances with every change of the record and never repeats for one node: a value held under an older generation is stale. A workload names use_case and alternative only when the use-case catalog of the same release resolves its applied modules (resolution catalog); otherwise resolution says why. edition is public or private with edition_status recorded only when the exact applied release records its edition. Otherwise edition is null with edition_status not_recorded; it is never inferred. The response holds no address, credential, token or other server’s data and is private and uncached.
curl --request GET \
--url https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state"
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/servers/{serverId}/applied-state', 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/servers/{serverId}/applied-state",
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/servers/{serverId}/applied-state"
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/servers/{serverId}/applied-state")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/servers/{serverId}/applied-state")
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": {
"schema_version": "homelab.server-applied-state/v1",
"server_id": "<string>",
"status": "current",
"edition": "public",
"edition_status": "not_recorded",
"workloads": [
{
"workload_ref": "<string>",
"module_refs": [
"<string>"
],
"state": "applied",
"resolution": "catalog",
"use_case": "<string>",
"alternative": "<string>"
}
],
"read_at": "2023-11-07T05:31:56Z",
"kit_deployment_id": "<string>",
"node_ref": "<string>",
"reason_code": "<string>",
"apply_generation": 2,
"recorded_at": "2023-11-07T05:31:56Z",
"release": {
"version": "<string>",
"archive_sha256": "<string>",
"release_index_sha256": "<string>"
},
"plan_hash": "<string>",
"apply_result_hash": "<string>",
"applied_at": "2023-11-07T05:31:56Z",
"verified_at": "2023-11-07T05:31:56Z",
"checked_at": "2023-11-07T05:31:56Z",
"evidence_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"changing_job_id": "<string>",
"source": {
"job_id": "<string>",
"operation": "<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>"
}
}