Generated from the Homelab v0.41.15 release (source
b5b268760b34). For an installed version, homelab api <command> --help is authoritative.homelab api servers detach
吊销并分离一台确切的、由客户自行运营的 BYO 服务器。 保留终态的规范服务器回执,且不执行任何提供商 API 调用。homelab api servers get
获取规范的服务器生命周期、连接、健康状况和通道。homelab api servers list
列出规范的 Node 运行时状态。 返回按所有者限定的 Node,带有规范的node_id 和 kit_deployment_id 身份。
homelab api servers maintenance cancel
Cancel an owned maintenance job before execution starts. Uses the same tenant, entitlement, server and requesting-owner scope as the job read. Cancellation and execution claim use the same queued-state compare-and-set. Repeating a successful cancellation returns its receipt; a claimed or finished job returns maintenance_not_cancellable. Cancelling never claims to stop a command that has already reached the server.homelab api servers maintenance get
读取某台自有服务器的一个维护任务。 范围与 POST 相同:由 Edge 签名的homelab.servers.maintenance 权益、租户、服务器的所有权,以及属于此服务器且由调用方请求的任务。其他任何情况均返回 404。维护任务有自己的账本,不通过 /api/v1/jobs/{id} 提供。没有日志端点:任务本身携带其结果,失败时携带稳定的代码和用户指引。
homelab api servers maintenance impact
Preview service and stack impact before confirming OS maintenance. Requires the signed maintenance entitlement and ownership of the server. Lists canonical service placement and stack membership, with reasons and inventory freshness and completeness. An empty services array means no affected services only when inventory.status is current. An incomplete, stale or unavailable inventory cannot authorize maintenance. The digest binds the server, operation and material dependency snapshot; ordinary observation timestamps do not invalidate unchanged impact. Responses are private and must not be cached.homelab api servers maintenance run
为拥有的服务器排队执行操作系统更新计划、操作系统更新或重启。 Requires the Edge-signedhomelab.servers.maintenance entitlement, ownership of the server in the tenant, and current server-bound standing authority for delegated native MCP calls. These three ordinary actions require no fresh MFA or separate owner_approved assertion. Reboot and os_update require expected_impact_digest from the preview the user confirmed. Impact is compared atomically at admission and again at execution claim; changed or incomplete evidence sends no command and requires a refreshed preview and renewed confirmation with a new request key. The body is decoded strictly: exact lowercase keys, no duplicates, no unknown fields. A replay with the same Idempotency-Key returns the stored receipt before target validation. One reboot or OS update and, separately, one update plan may be active per server; a job not finished by its deadline fails with deadline_exceeded and frees its slot. The action is offered in allowed_actions only when the server agent advertises stackkit.host-maintenance.v1, and reboot only when the server also reports host_boot_id. Refusals are client-error-envelope/v1 documents; 409 reason_code is one of control_plane_host, substrate_node, protected_demo_server, service_locked, maintenance_active, node_operation_active, plan_stale, agent_capability_missing, boot_id_unknown, agent_not_connected, heartbeat_stale, inventory_revision_stale, idempotency_key_reused, impact_confirmation_required, impact_changed or impact_unavailable; 403 carries entitlement_required or maintenance_origin_authority_denied.
homelab api servers network get
读取服务器的网络事实和已记录的家庭网络迁移。 包括服务器的 kombify Guard 最近观测到的网络(地址、网关、子网、接口和 WiFi 网络)、服务器出现在另一网络时 kombify 写入的network_move 记录,以及随后重新绑定的状态。迁移后的服务器会自动重新绑定;can_rebind 表示所有者现在是否可以启动重新绑定。
homelab api servers network rebind
将已迁移的服务器重新绑定到当前网络。 通过服务器的 kombify Guard 运行stackkit network rebind:节点重新检测 LAN 地址,重新签发已签名的 LAN DNS 保管记录,并重新生成和应用工作区。请求没有请求体。需要所有者、Inventory 的 operate 授权、homelab.servers.maintenance 权益和已连接的 Guard,否则返回 409 server_network_not_ready。已有排队或运行中的重新绑定时返回该任务,不会再次排队。
homelab api servers ports
获取经过认证的所有者在某台规范服务器上的端口清单。 服务器详情 UI 投影,基于与 Inventory/MCP 接口相同的中央端口授权,并通过规范的、按所有者限定的服务器读取边界进行授权。homelab api servers reach set
将服务器发布到 kombify.me 地址,或停止发布。 默认不发布任何内容:已配对服务器没有公开路由,中继也不承载流量。所有者为每台服务器指定service 名称和 target_port 后启用,并可随时撤销;源站始终是 Guard 主机的回环地址,绝不是其他机器。中继验证 Guard,而非访客,因此该端口上的服务必须自行保护。启用需要所有者、homelab.servers.maintenance 权益及新的多因素登录(原因 server_reach_step_up_required);撤销不会受此门槛限制。响应返回服务器读取模型中的 reach 部分;随后由协调器创建或撤销路由。
homelab api servers security auto-repair get
读取所有者对自动安全修复的批准。 未获得批准或批准已过期的服务器仅进行观测。homelab api servers security auto-repair set
批准或撤销对一小组安全控制项的自动修复。 默认关闭。批准从安全集合中指定控制项(allowed_controls:暴力破解防护、防火墙策略、内核参数和自动安全更新;绝不包括 ssh 控制项),有效期最多 90 天,且不会自动续期。批准有效时,控制平面在与操作员修复相同的边界内,修复新鲜证据显示发生偏离的指定控制项。需要所有者、homelab.servers.maintenance 权益及新的多因素登录。enabled: false 撤销批准。
homelab api servers security findings
列出一台服务器的未解决发现和近期发现历史。 这是服务器security、recovery 和 Guard 告警背后的发现账本。每条发现对应一次事件:首次观测到事实不正确时打开,恢复正确时解决,最多各记录一次告警(alerted_at)和一次解决。历史保留 90 天。
homelab api servers security repairs list
列出一台服务器最近的安全修复。homelab api servers security repairs request
修复指定的、发生偏离的主机安全控制项。 请求在限定范围内修复新鲜主机安全证据显示发生偏离且可自动修复的控制项。需要服务器所有者、Edge 签名的homelab.servers.maintenance 权益及新的多因素登录(最多 300 秒前)。修复作为带类型、记入日志的 Guard 命令,针对指定控制项运行 stackkit host security repair --apply;StackKits 会在变更前拒绝可能切断管理路径或将所有者锁在系统外的变更。限制包括:每台服务器同时仅一次修复(409 repair_in_progress)、每个控制项的冷却期(429 repair_cooldown)、每日尝试预算(429 repair_attempts_exhausted)及连续失败后的熔断(429 repair_circuit_open);429 响应携带 retry_after。已合规(409 control_not_drifted)、有批准例外(control_has_exception)、需要手工修复(control_not_repairable)、缺少授权 SSH 密钥(needs_authorized_key)或未被观测的控制项均被拒绝。请求体严格解码。
homelab api servers security verify
请求 kombify Guard 进行一次新的主机安全观测。 记录需要重新观测主机基线。Guard 在下一次签到时(约一分钟内)返回新报告;不会改变主机上的任何内容。服务器的security 读取模型只由该报告更新,绝不由此请求更新。其他租户或所有者的服务器返回 404;没有 Guard 的服务器返回 409 guard_not_connected。
