使用此端點列出要求。
變更 ACCEPT
標題為 text/csv
以傳回 CSV 輸出的結果。
curl -X GET \
https://www.digicert.com/services/v2/request \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/request"
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/request"
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/request',
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);
});
{
"requests": [
{
"id": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "pending",
"requester": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"order": {
"id": 12345678,
"certificate": {
"common_name": "example.com"
},
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llc"
},
"container": {
"id": 5,
"name": "History Department"
},
"product": {
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate"
}
}
},
...
],
"page": {
"total": 14,
"limit": 0,
"offset": 0
}
}
名稱 | 必填/選填 | 類型 | 說明 |
---|---|---|---|
offset | 選填 | int |
在指定頁數開始清單。 預設: 0
|
limit | 選填 | int |
將清單裁剪為指定頁數。 最大: 1000 (預設)
|
名稱 | 類型 | 說明 |
---|---|---|
requests | array | 要求的清單。 |
.. id | int | 要求 ID。 |
.. date | string |
提交要求時的時間戳記。 格式:UTC 時區和 ISO 8601 日期 |
.. type | string |
要求類型: 可能的值: new_request ,revoke ,duplicate ,reissue
|
.. status | string |
要求的狀態。 可能的值: submitted ,pending ,approved ,rejected
|
.. 要求者 | object | 與提交要求的使用者有關的詳細資料。 |
.. order | object | 與要求關聯的訂單有關的詳細資料。 |
.. .. id | int | 訂單 ID。 |
.. .. certificate | object | 憑證詳細資料。 |
.. .. .. common_name | string | 由憑證保護安全的名稱。 |
.. .. organization | object | 與訂單關聯的組織有關的詳細資料。 |
.. .. .. id | int | 組織 ID。 |
.. .. .. name | string | 組織的法律名稱。 |
.. .. container | object | 與訂單關聯的容器有關的詳細資料。 |
.. .. .. id | int | 容器 ID。 |
.. .. .. name | string | 容器的名稱。 |
.. .. product | object | 與訂購的產品有關的詳細資料。 |
.. .. .. name_id | string |
產品的名稱 ID。 請參閱詞彙 — 產品識別碼 |
.. .. .. name | string |
顯示產品名稱。 請參閱詞彙 — 產品識別碼 |
.. .. .. type | string |
產品類型。 請參閱詞彙 — 產品類型 |
頁面 | object |
與結果有關的詳細資料。 使用 URL 查詢字串修改。 |