Deep probe a caller-owned device
curl --request POST \
--url https://api.kombify.io/v1/homelab/api/v1/discovery/probe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ssh_user": "<string>",
"ssh_wallet_item_id": "<string>",
"ssh_port": 22,
"timeout_seconds": 30
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/discovery/probe"
payload = {
"ip": "<string>",
"ssh_user": "<string>",
"ssh_wallet_item_id": "<string>",
"ssh_port": 22,
"timeout_seconds": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ip: '<string>',
ssh_user: '<string>',
ssh_wallet_item_id: '<string>',
ssh_port: 22,
timeout_seconds: 30
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/discovery/probe', 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/discovery/probe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ip' => '<string>',
'ssh_user' => '<string>',
'ssh_wallet_item_id' => '<string>',
'ssh_port' => 22,
'timeout_seconds' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombify.io/v1/homelab/api/v1/discovery/probe"
payload := strings.NewReader("{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombify.io/v1/homelab/api/v1/discovery/probe")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/discovery/probe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Discovery
Deep probe a caller-owned device
Logs in to the device over SSH with the login held in the Wallet item ssh_wallet_item_id (a kombify Wallet node access item assigned to Homelab and bound to this IP or to no host, or an SSH key or password item of the built-in wallet whose URL names this IP) and reads its system facts. The login is resolved inside Homelab for this probe only and never answered. This contract accepts no password or private key. Non-admin callers may only probe IPs from their own discovery results; admins may probe arbitrary IPs. Local control planes only (409 lan_executor_required on a hosted one).
POST
/
api
/
v1
/
discovery
/
probe
Deep probe a caller-owned device
curl --request POST \
--url https://api.kombify.io/v1/homelab/api/v1/discovery/probe \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ip": "<string>",
"ssh_user": "<string>",
"ssh_wallet_item_id": "<string>",
"ssh_port": 22,
"timeout_seconds": 30
}
'import requests
url = "https://api.kombify.io/v1/homelab/api/v1/discovery/probe"
payload = {
"ip": "<string>",
"ssh_user": "<string>",
"ssh_wallet_item_id": "<string>",
"ssh_port": 22,
"timeout_seconds": 30
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ip: '<string>',
ssh_user: '<string>',
ssh_wallet_item_id: '<string>',
ssh_port: 22,
timeout_seconds: 30
})
};
fetch('https://api.kombify.io/v1/homelab/api/v1/discovery/probe', 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/discovery/probe",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ip' => '<string>',
'ssh_user' => '<string>',
'ssh_wallet_item_id' => '<string>',
'ssh_port' => 22,
'timeout_seconds' => 30
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kombify.io/v1/homelab/api/v1/discovery/probe"
payload := strings.NewReader("{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kombify.io/v1/homelab/api/v1/discovery/probe")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kombify.io/v1/homelab/api/v1/discovery/probe")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ip\": \"<string>\",\n \"ssh_user\": \"<string>\",\n \"ssh_wallet_item_id\": \"<string>\",\n \"ssh_port\": 22,\n \"timeout_seconds\": 30\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INTERNAL_ERROR",
"message": "<string>",
"details": "<unknown>"
}
}Autorisierungen
Body
application/json
Antwort
Probe results
