From: Nicolas Frey <[email protected]>
Signed-off-by: Nicolas Frey <[email protected]>
---
PVE/API2/Services.pm | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Services.pm b/PVE/API2/Services.pm
index 708b6613..c8e3e933 100644
--- a/PVE/API2/Services.pm
+++ b/PVE/API2/Services.pm
@@ -241,7 +241,35 @@ __PACKAGE__->register_method({
},
returns => {
type => "object",
- properties => {},
+ properties => {
+ 'active-state' => {
+ type => 'string',
+ enum => ['active', 'inactive', 'unknown'],
+ description => 'Current active state of the service process.',
+ },
+ 'state' => {
+ type => 'string',
+ enum => ['running', 'dead', 'unknown'],
+ description => 'Execution status of the service.',
+ },
+ 'unit-state' => {
+ type => 'string',
+ enum => ['enabled', 'disabled', 'not-found'],
+ description => 'Whether the service is enabled to start at
boot.',
+ },
+ 'service' => {
+ type => 'string',
+ description => 'Systemd unit name (e.g., pveproxy).',
+ },
+ 'name' => {
+ type => 'string',
+ description => 'Short identifier for the service (e.g.,
"pveproxy").',
+ },
+ 'desc' => {
+ type => 'string',
+ description => 'Human-readable description of the service.',
+ },
+ },
},
code => sub {
my ($param) = @_;
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel