[pve-devel] [PATCH pve-manager 2/5] api: add ACME plugin return schema
n.frey at proxmox.com
n.frey at proxmox.com
Fri Sep 19 11:33:29 CEST 2025
From: Nicolas Frey <n.frey at proxmox.com>
Signed-off-by: Nicolas Frey <n.frey at proxmox.com>
---
PVE/API2/ACMEPlugin.pm | 49 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/PVE/API2/ACMEPlugin.pm b/PVE/API2/ACMEPlugin.pm
index 510101aa..b67cb1ff 100644
--- a/PVE/API2/ACMEPlugin.pm
+++ b/PVE/API2/ACMEPlugin.pm
@@ -76,6 +76,29 @@ __PACKAGE__->register_method({
type => "object",
properties => {
plugin => get_standard_option('pve-acme-pluginid'),
+ 'validation-delay' => {
+ type => 'integer',
+ description => 'Waiting period after a DNS record is created.',
+ default => 30,
+ optional => 1
+ },
+ data => {
+ type => 'string',
+ description => 'Additional data like keys, server, url etc.',
+ optional => 1
+ },
+ api => {
+ type => 'string',
+ description => 'One of the DNS APIs listed in /json/cluster/challenge-schema.'
+ },
+ digest => {
+ type => 'string',
+ description => 'Digest to detect modification.'
+ },
+ type => {
+ type => 'string',
+ description => ''
+ },
},
},
links => [{ rel => 'child', href => "{plugin}" }],
@@ -113,6 +136,32 @@ __PACKAGE__->register_method({
},
returns => {
type => 'object',
+ properties => {
+ plugin => get_standard_option('pve-acme-pluginid'),
+ 'validation-delay' => {
+ type => 'integer',
+ description => 'Waiting period after a DNS record is created.',
+ default => 30,
+ optional => 1
+ },
+ data => {
+ type => 'string',
+ description => 'Additional data like keys, server, url etc.',
+ optional => 1
+ },
+ api => {
+ type => 'string',
+ description => 'One of the DNS APIs listed in /json/cluster/challenge-schema.'
+ },
+ digest => {
+ type => 'string',
+ description => ''
+ },
+ type => {
+ type => 'string',
+ description => ''
+ },
+ },
},
code => sub {
my ($param) = @_;
--
2.47.3
More information about the pve-devel
mailing list