このエンドポイントを使用して、オーダーの認証ステータスを取得します。
curl -X GET \
'https://www.digicert.com/services/v2/order/certificate/{{order_id}}/validation' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/validation"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/order/certificate/{{order_id}}/validation"
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/{{order_id}}/validation',
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);
});
{
"order_id": "112211",
"order_status": "issued",
"organization_id": "12345",
"organization_name": "Example Organization",
"organization_validations": [
{
"type": "ov",
"name": "OV",
"description": "Normal Organization Validation",
"date_created": "2018-04-25T21:52:33+00:00",
"validated_until": "2019-04-25T21:52:33+00:00",
"status": "complete"
}
],
"dns_name_validations": [
{
"domain_id": "1234",
"name_scope": "example.com",
"approval_scope": "subdomains",
"status": "approved",
"method": "email",
"dns_names": [
"sub.example.com"
],
"approval_expiration_date": "2020-09-11T16:27:39+00:00"
}
]
}
名前 | 種別 | 説明 |
---|---|---|
order_id | string | オーダー ID |
order_status | string |
オーダーのステータス 「用語集 — オーダーステータス」を参照してください |
organization_id | string | 組織 ID. |
organization_name | string | 組織名 |
organization_validations | array | 組織用の組織認証のリスト |
.. type | string |
組織タイプ ID 「用語集 — 認証タイプ」を参照してください |
.. name | string | 認証タイプの分かりやすい名前 |
.. description | string | 認証タイプの説明 |
.. date_created | string |
認証完了時のタイプスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
.. validated_until | string |
認証が有効期限切れになるときのタイプスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
.. status | string |
認証ステータス 可能な値: pending ,active
|
dns_name_validations | array | オーダーのドメイン認証のリスト |
.. domain_id | string | ドメイン ID. |
.. name_scope | string | 認証の名前スコープ |
.. approval_scope | string | 認証の承認スコープ |
.. status | string | 認証ステータス |
.. method | string | 使用した DCV 方法 |
.. dns_names | array | 安全保護する追加 SAN |
.. approval_expiration_date | string |
ドメイン認証が有効期限切れするときのタイプスタンプ 可能な値: pending , active
|