-
-
Notifications
You must be signed in to change notification settings - Fork 243
REST API
Tatsuro Shibamura edited this page Aug 2, 2023
·
11 revisions
If you only want to use the API externally, disable App Service Authentication and use the Azure Functions Host Key to execute the API.
-
X-Functions-Key
- Functions Host Key
-
Content-Type
application/json
POST /api/certificate
{
"DnsNames": ["contoso.com", "www.contoso.com"]
}
202 Accepted
Location: /api/state/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
400 Bad Request
{
"errors": {
"DnsNames": [
"The DnsNames is required."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-e2468d29d2988e4490e92e2768b622b0-92d30024b7066e4d-00"
}
401 Unauthorized
POST /api/certificate/{certificate-name}/renew
202 Accepted
Location: /api/state/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
401 Unauthorized
POST /api/certificate/{certificate-name}/revoke
202 Accepted
Location: /api/state/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
401 Unauthorized
GET /api/state/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
200 OK
202 Accepted
Location: /api/state/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
500 Internal Server Error