]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Nodes.pm
api: node status: document boot-info and current-kernel in return schema
[pve-manager.git] / PVE / API2 / Nodes.pm
index 3619190debe9efc236cceb705d6873205ef0e1b6..67a8ce222606468b0ada14b4007451fd34408f8c 100644 (file)
@@ -396,8 +396,47 @@ __PACKAGE__->register_method({
     },
     returns => {
        type => "object",
+       additionalProperties => 1,
        properties => {
-
+           # TODO: document remaing ones
+           'boot-info' => {
+               description => "Meta-information about the boot mode.",
+               type => 'object',
+               properties => {
+                   mode => {
+                       description => 'Through which firmware the system got booted.',
+                       type => 'string',
+                       enum => [qw(efi legacy-bios)],
+                   },
+                   secureboot => {
+                       description => 'System is booted in secure mode, only applicable for the "efi" mode.',
+                       type => 'boolean',
+                       optional => 1,
+                   },
+               },
+           },
+           'current-kernel' => {
+               description => "The uptime of the system in seconds.",
+               type => 'object',
+               properties => {
+                   sysname => {
+                       description => 'OS kernel name (e.g., "Linux")',
+                       type => 'string',
+                   },
+                   release => {
+                       description => 'OS kernel release (e.g., "6.8.0")',
+                       type => 'string',
+                   },
+                   version => {
+                       description => 'OS kernel version with build info',
+                       type => 'string',
+                   },
+                   machine => {
+                       description => 'Hardware (architecture) type',
+                       type => 'string',
+                   },
+               },
+           },
        },
     },
     code => sub {