Skip to content

Commit 4870562

Browse files
committed
MINOR: runtime: add HTTP endpoints for ACME status and renew
1 parent 4bebe71 commit 4870562

3 files changed

Lines changed: 72 additions & 0 deletions

File tree

specification/build/haproxy_spec.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26459,6 +26459,41 @@ paths:
2645926459
summary: Replace the value corresponding to each id in a map
2646026460
tags:
2646126461
- Maps
26462+
/services/haproxy/runtime/acme:
26463+
get:
26464+
description: Returns the status of each managed ACME certificate.
26465+
operationId: getAcmeStatus
26466+
responses:
26467+
"200":
26468+
description: Successful operation
26469+
schema:
26470+
$ref: '#/definitions/acme_status'
26471+
"404":
26472+
$ref: '#/responses/NotFound'
26473+
default:
26474+
$ref: '#/responses/DefaultError'
26475+
summary: ACME Status
26476+
tags:
26477+
- AcmeRuntime
26478+
put:
26479+
description: Force renewal of an ACME certificate.
26480+
operationId: renewAcmeCertificate
26481+
parameters:
26482+
- description: Certificate file name
26483+
in: query
26484+
name: certificate
26485+
required: true
26486+
type: string
26487+
responses:
26488+
"200":
26489+
description: Operation started
26490+
"404":
26491+
$ref: '#/responses/NotFound'
26492+
default:
26493+
$ref: '#/responses/DefaultError'
26494+
summary: Renew ACME certificate
26495+
tags:
26496+
- AcmeRuntime
2646226497
/services/haproxy/configuration/version:
2646326498
get:
2646426499
description: Returns configuration version.

specification/haproxy-spec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,6 +1261,8 @@ paths:
12611261
$ref: "paths/runtime/maps_entries.yaml#/maps_entries"
12621262
/services/haproxy/runtime/maps/{parent_name}/entries/{id}:
12631263
$ref: "paths/runtime/maps_entries.yaml#/maps_entries_one"
1264+
/services/haproxy/runtime/acme:
1265+
$ref: "paths/runtime/acme.yaml#/acme"
12641266
/services/haproxy/configuration/version:
12651267
$ref: "paths/configuration/version.yaml#/version"
12661268
/services/haproxy/storage:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
acme:
2+
get: # acme status
3+
summary: ACME Status
4+
description: Returns the status of each managed ACME certificate.
5+
operationId: getAcmeStatus
6+
tags:
7+
- AcmeRuntime
8+
responses:
9+
'200':
10+
description: Successful operation
11+
schema:
12+
$ref: "#/definitions/acme_status"
13+
'404':
14+
$ref: '#/responses/NotFound'
15+
'default':
16+
$ref: '#/responses/DefaultError'
17+
put: # acme renew
18+
summary: Renew ACME certificate
19+
description: Force renewal of an ACME certificate.
20+
operationId: renewAcmeCertificate
21+
tags:
22+
- AcmeRuntime
23+
parameters:
24+
- name: certificate
25+
in: query
26+
description: Certificate file name
27+
required: true
28+
type: string
29+
responses:
30+
'200':
31+
description: Operation started
32+
'404':
33+
$ref: '#/responses/NotFound'
34+
'default':
35+
$ref: '#/responses/DefaultError'

0 commit comments

Comments
 (0)