summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hanreich <s.hanreich@proxmox.com>2025-09-04 10:18:31 +0200
committerWolfgang Bumiller <w.bumiller@proxmox.com>2025-09-04 14:16:41 +0200
commit97d62fbe1c4c29efb1def45ce844ad1994f00abb (patch)
tree3cc08c3929673d9f828deb06974c22d0762f62b1
parent4628c6798ceceba20ae7e153b7080657d465ce5b (diff)
api: add state standard option
GET calls on SDN entities with pending=1 show the state of the entity. Define a common option for this, since it is the same across all SDN entities. This will be used for improving the API documentation later on. Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> Tested-by: Dominik Csapak <d.csapak@proxmox.com>
-rw-r--r--src/PVE/Network/SDN.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/PVE/Network/SDN.pm b/src/PVE/Network/SDN.pm
index 83f2cc7..f2ecd4a 100644
--- a/src/PVE/Network/SDN.pm
+++ b/src/PVE/Network/SDN.pm
@@ -60,6 +60,16 @@ PVE::JSONSchema::register_standard_option(
},
);
+PVE::JSONSchema::register_standard_option(
+ 'pve-sdn-config-state',
+ {
+ type => 'string',
+ enum => ['new', 'changed', 'deleted'],
+ description => 'State of the SDN configuration object.',
+ optional => 1,
+ },
+);
+
# improve me : move status code inside plugins ?
sub ifquery_check {