使用此端點取得訂單的驗證狀態。
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
|