證書列表
獲取當前用戶的證書服務列表。
接口地址
GET /api/v1/certificate/list
請求參數
| 參數名 | 類型 | 必填 | 默認值 | 說明 |
|---|---|---|---|---|
| page | integer | 否 | 1 | 頁碼 |
| page_size | integer | 否 | 15 | 每頁數量 |
| status | string | 否 | - | 證書狀態篩選。 可選值: issuing: 簽發中issued: 已簽發expiring: 即將過期(30天內)expired: 已過期 |
| keyword | string | 否 | - | 搜索關鍵詞(支持訂單號、域名等)。域名支持 punycode 與 Unicode 原文兩種寫法,例如 xn--fiqs8s 與 中國 都能搜到 |
| fields | array | 否 | - | 指定返回字段,例如 ['service_id', 'status', 'domain_dcv'] |
國際化域名(IDN)
搜索可以傳 punycode 也可以傳 Unicode 原文;但返回的 domain_dcv 等域名一律是 punycode,請按 punycode 做匹配。
響應示例
{
"code": 0,
"message": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 123,
"service_id": "202310270001",
"status": "issued",
"domain_dcv": {
"example.com": "dns"
},
"product_name": "Certum DV SSL",
"period": "1 Year",
"created_at": "2023-10-27 10:00:00",
"cert_expires_at": "2024-10-27 10:00:00",
"service_expires_at": "2024-10-27 10:00:00"
},
{
"id": 123,
"service_id": "202310270001",
"status": "expiring",
"domain_dcv": {
"example.com": "http"
},
"product_name": "Certum DV SSL",
"period": "1 Year",
"created_at": "2023-10-27 10:00:00",
"cert_expires_at": "2024-10-27 10:00:00",
"service_expires_at": "2024-10-27 10:00:00"
}
],
"first_page_url": "https://api.example.com/api/v1/certificate/list?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://api.example.com/api/v1/certificate/list?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.example.com/api/v1/certificate/list?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "https://api.example.com/api/v1/certificate/list",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}