[pve-devel] [PATCH manager 2/2] api: cluster/resources: add missing return properties
Dominik Csapak
d.csapak at proxmox.com
Mon Oct 21 11:15:42 CEST 2024
used the same description as for the guests.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
PVE/API2/Cluster.pm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index 04387ab4..5ae390bf 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -295,6 +295,20 @@ __PACKAGE__->register_method({
optional => 1,
renderer => 'bytes',
},
+ netin => {
+ description => "The amount of traffic that was sent to the guest since it's"
+ ." start, in bytes. (type in qemu,lxc)",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
+ netin => {
+ description => "The amount of traffic that was sent from the guest since it's"
+ ." start, in bytes. (type in qemu,lxc)",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
level => {
description => "Support level (when type == node).",
type => 'string',
@@ -325,6 +339,20 @@ __PACKAGE__->register_method({
renderer => 'bytes',
minimum => 0,
},
+ diskread => {
+ description => "The amount of bytes the guest read from it's disks since the"
+ ." process start in bytes. (type in qemu,lxc)",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
+ diskwrite => {
+ description => "The amount of bytes the guest wrote to it's disks since the"
+ ." process start in bytes. (type in qemu,lxc)",
+ type => 'integer',
+ optional => 1,
+ renderer => 'bytes',
+ },
content => {
description => "Allowed storage content types (when type == storage).",
type => 'string',
@@ -345,6 +373,12 @@ __PACKAGE__->register_method({
type => 'integer',
optional => 1,
},
+ template => {
+ description => "Determines if the guest is a template. (type in qemu,lxc)",
+ type => 'boolean',
+ optional => 1,
+ default => 0,
+ },
},
},
},
--
2.39.5
More information about the pve-devel
mailing list