[pve-devel] [PATCH pve-manager 3/5] api: add APT versions return schema

n.frey at proxmox.com n.frey at proxmox.com
Fri Sep 19 11:33:30 CEST 2025


From: Nicolas Frey <n.frey at proxmox.com>

Signed-off-by: Nicolas Frey <n.frey at proxmox.com>
---
 PVE/API2/APT.pm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 60 insertions(+), 1 deletion(-)

diff --git a/PVE/API2/APT.pm b/PVE/API2/APT.pm
index 0d07cf38..9a8406a8 100644
--- a/PVE/API2/APT.pm
+++ b/PVE/API2/APT.pm
@@ -788,7 +788,66 @@ __PACKAGE__->register_method({
         type => "array",
         items => {
             type => "object",
-            properties => {},
+            properties => {
+                'Arch' => {
+                    type => 'string',
+                    description => 'Package Architecture.',
+                },
+                'Description' => {
+                    type => 'string',
+                    description => 'Human-readable package description.',
+                },
+                'NotifyStatus' => {
+                    type => 'string',
+                    description =>
+                        'Version for which PVE has already sent an update notification for.',
+                    optional => 1,
+                },
+                'OldVersion' => {
+                    type => 'string',
+                    description => 'Old version currently installed.',
+                    optional => 1,
+                },
+                'Origin' => {
+                    type => 'string',
+                    description => 'Package origin.',
+                },
+                'Package' => {
+                    type => 'string',
+                    description => 'Package name.',
+                },
+                'Priority' => {
+                    type => 'string',
+                    description => 'Package priority in human-readable form.',
+                },
+                'Section' => {
+                    type => 'string',
+                    description => 'Package section.',
+                },
+                'Title' => {
+                    type => 'string',
+                    description => 'Package title.',
+                },
+                'Version' => {
+                    type => 'string',
+                    description => 'New version to be updated to.',
+                },
+                'CurrentState' => {
+                    type => 'string',
+                    description => 'Whether the Package is installed.',
+                    format => '',
+                },
+                'RunningKernel' => {
+                    type => 'string',
+                    description => 'Kernel Release, only for Package "Proxmox Virtual Environment".',
+                    optional => 1,
+                },
+                'ManagerVersion' => {
+                    type => 'string',
+                    description => 'Proxmox Virtual Environment Management Tools.',
+                    optional => 1,
+                }
+            },
         },
     },
     code => sub {
-- 
2.47.3




More information about the pve-devel mailing list