# 过期证书

# 获取即将过期证书列表

# 简介

分页获取指定时间内即将过期的证书

# 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
}