使用此端點列出所有憑證訂單。
變更 ACCEPT
標題為 text/csv
以傳回 CSV 輸出的結果。
curl -X GET \
https://www.digicert.com/services/v2/order/certificate \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/order/certificate"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/order/certificate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'GET',
url: 'https://www.digicert.com/services/v2/order/certificate',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"orders": [
{
"id": 123456,
"certificate": {
"id": 104,
"common_name": "example.com",
"dns_names": [
"example2.com",
"example3.com"
],
"signature_hash": "sha256"
},
"status": "pending",
"is_renewed": false,
"date_created": "2018-10-16T17:29:56+00:00",
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llc"
},
"validity_years": 1,
"disable_renewal_notifications": false,
"container": {
"id": 14,
"name": "DigiCert Inc."
},
"product": {
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate"
},
"has_duplicates": false,
"product_name_id": "ssl_plus"
},
{
"id": 123457,
"certificate": {
"id": 105,
"common_name": "example.org",
"dns_names": [
"sub.example.org"
],
"valid_till": "2020-04-30",
"days_remaining": 289,
"signature_hash": "sha256"
},
"status": "issued",
"is_renewed": false,
"date_created": "2019-04-30T18:02:50+00:00",
"organization": [],
"validity_years": 1,
"container": {
"id": 14,
"name": "CertCentral"
},
"product": {
"name_id": "ssl_dv_geotrust",
"name": "GeoTrust Standard DV",
"type": "dv_ssl_certificate"
},
"has_duplicates": false,
"product_name_id": "ssl_dv_geotrust"
},
...
],
"page": {
"total": 31,
"limit": 0,
"offset": 0
}
}
名稱 | 必填/選填 | 類型 | 說明 |
---|---|---|---|
offset | 選填 | int |
在指定頁數開始清單。 預設: 0
|
limit | 選填 | int |
將清單裁剪為指定頁數。 最大: 1000 (預設)
|
名稱 | 類型 | 說明 |
---|---|---|
orders | array | 由要求傳回的訂單的清單。 |
.. id | int | 訂單 ID。 |
.. certificate | object | 與訂購的憑證有關的詳細資料。 |
.. .. id | int | 憑證 ID。 |
.. .. common_name | string | 由憑證保護安全的名稱。 |
.. .. dns_names | array | 由憑證保護安全的其他名稱的清單。 |
.. .. valid_till | string |
憑證到期日。 格式: yyyy-MM-dd
|
.. .. days_remaining | int | 將來憑證到期天數。 |
.. .. signature_hash | string | 憑證使用的簽章演算法。 |
.. status | string |
訂單的狀態。 請參閱詞彙 — 訂單狀態 |
.. is_renewed | bool | 說明訂單是否已續訂。 |
.. date_created | string |
訂單建立日期。 格式:UTC 時區和 ISO 8601 日期 |
.. organization | object | 與訂單關聯的組織有關的詳細資料。 |
.. .. id | int | 組織 ID。 |
.. .. name | string | 組織的法律名稱。 |
.. validity_years | int | 憑證將有效的年數。 |
.. disable_renewal_notifications | bool | 說明是否啟用續訂通知。 |
.. container | object | 與訂單關聯的容器有關的詳細資料。 |
.. .. id | int | 容器 ID。 |
.. .. name | string | 容器的名稱。 |
.. product | object | 與訂購的產品有關的詳細資料。 |
.. .. name_id | string |
產品的名稱 ID。 請參閱詞彙 — 產品識別碼 |
.. .. name | string |
顯示產品名稱。 請參閱詞彙 — 產品識別碼 |
.. .. type | string |
產品類型。 請參閱詞彙 — 產品類型 |
.. has_duplicates | bool | 說明是否有複本。 |
.. product_name_id | string |
產品的名稱 ID。 請參閱詞彙 — 產品識別碼 |
頁面 | object |
與結果有關的詳細資料。 使用 URL 查詢字串修改。 |