查詢證書列表
更新時間 2023-11-09 11:19:13
最近更新時間: 2023-11-09 11:19:13
分享文章
接口描述:調用本接口查詢證書詳情信息。
請求方式:get
請求路徑:/cert/query-cert-list
使用說明: 單個用戶一分鐘限制調用10000次,并發不超過100。
請求參數說明:
| 參數 | 類型 | 是否必傳 | 名稱 | 描述 |
|---|---|---|---|---|
| page | int | 否 | 當前頁數 | 不填默認1 |
| per_page | int | 否 | 每頁顯示的記錄條數 | 不填默認1000 |
返回參數說明:
| 參數 | 類型 | 是否必傳 | 名稱及描述 |
|---|---|---|---|
| code | int | 是 | 狀態碼 |
| message | string | 是 | 描述信息 |
| total_records | int | 否 | 總記錄數 |
| total_page | int | 否 | 總頁數 |
| page | int | 否 | 當前頁數 |
| per_page | int | 否 | 每頁顯示的記錄條數 |
| result | list< object> | 否 | 證書信息列表 |
| result[*].id | int | 否 | 證書id |
| result[*].expires | int | 否 | 證書過期時間 |
| result[*].issue | int | 否 | 證書頒發時間 |
| result[*].issuer | string | 否 | 證書頒發機構 |
| result[*].created | int | 否 | 證書創建時間 |
| result[*].name | string | 否 | 證書備注名稱 |
| result[*].cn | string | 否 | 證書通用名稱 |
| result[*].sans | list< string> | 否 | 證書授權域名,即證書可以被哪些域名使用 |
示例:
請求路徑://cdnapi-global.ctapi.daliqc.cn/cert/query-cert-list
示例1:
請求://cdnapi-global.ctapi.daliqc.cn/cert/query-cert-list?page=2&per_page=2
返回結果:
{
"code": 100000,
"message": "success",
"per_page": 2,
"total_records": 159,
"total_page": 80,
"page": 2,
"result": [
{
"id": 7034,
"expires": 1914562170,
"issue": 1599202170,
"sans": [
"a.daliqc.cn",
"b.daliqc.cn"
],
"created": 1600877997,
"name": "aa",
"cn": "test.daliqc.cn",
"issuer": "Internet Widgits Pty Ltd"
},
{
"id": 7038,
"expires": 1914487041,
"issue": 1599127041,
"sans": [
"c.daliqc.cn",
"d.daliqc.cn"
],
"created": 1602558244,
"name": "bb",
"cn": "test1.daliqc.cn",
"issuer": "Default Company Ltd"
}
]
}
錯誤碼請參考:參數code和message含義