[pve-devel] [PATCH ha-manager v2 04/12] api: rules: add missing return schema for the read_rule api endpoint
Daniel Kral
d.kral at proxmox.com
Fri Aug 1 18:22:19 CEST 2025
Suggested-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Signed-off-by: Daniel Kral <d.kral at proxmox.com>
---
src/PVE/API2/HA/Rules.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/PVE/API2/HA/Rules.pm b/src/PVE/API2/HA/Rules.pm
index b180d2ed..d797f621 100644
--- a/src/PVE/API2/HA/Rules.pm
+++ b/src/PVE/API2/HA/Rules.pm
@@ -223,6 +223,8 @@ __PACKAGE__->register_method({
rule => get_standard_option('pve-ha-rule-id'),
type => {
type => 'string',
+ description => "HA rule type.",
+ enum => PVE::HA::Rules->lookup_types(),
},
},
},
--
2.47.2
More information about the pve-devel
mailing list