使用此端点获取订单的验证状态。
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 | 订单编号。 |
order_status | string |
订单的状态。 请参阅词汇表 - 订单状态 |
organization_id | string | 组织编号。 |
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
|