過期證書

獲取即將過期證書列表

URI

GET /admin-api/certs/get_expired_certs

URI 引數

  • day

    type: integer

    required: no

    description: 指定的天數 (預設為 30)

  • page

    type: integer

    required: no

    description: 指定頁面 (預設為 1)

  • page_size

    type: integer

    required: no

    description: 每頁包含資料的數量 (預設為 20)

請求示例

Shell

curl http://{admin-site}/admin-api/admin-api/certs/get_expired_certs?page=1&day=29&page_size=20

響應示例

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
}