このエンドポイントを使用して、すべての申請を一覧表示します。
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 クエリ文字列を使用して修正済 |