Expired certificates
List certificates that are about to expire
Introduction
Get a list of certificates that are about to expire within a specified time
URI
GET /admin-api/certs/get_expired_certs
URI parameters
day
type: integer
required: no
description: specified days (default 30)
page
type: integer
required: no
description: page number of the results to fetch (default 1)
page_size
type: integer
required: no
description: results per page (default 20)
Request example
Shell
curl https://{admin-site}/admin-api/admin-api/certs/get_expired_certs?page=1&day=29&page_size=20
Response example
Status: 200 OK
{
"data": [{
"cert_id": 1,
"cert_type": "global_cert",
"domains": ["www.global.com"],
"expdate": 1599295729,
"label": "www.global.com",
"uid": 1
}, {
"app_id": 1,
"cert_id": 1,
"cert_type": "app_cert",
"domains": ["www.app.com"],
"expdate": 1599295739,
"uid": 1
}],
"status": 0
}