验证详情

GET
https://www.digicert.com/services/v2/domain/{{domain_id}}/validation

使用此端点获取关于域的验证详细信息。

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/domain/{{domain_id}}/validation' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/domain/{{domain_id}}/validation"

headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/domain/{{domain_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))

}
NodeJS
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/domain/{{domain_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);
});
200 OK
{
    "validations": [
        {
            "type": "ev",
            "name": "EV",
            "description": "Extended Organization Validation (EV)",
            "date_created": "2018-10-15T21:46:41+00:00",
            "validated_until": "2019-11-15T22:46:37+00:00",
            "status": "active",
            "dcv_status": "complete",
            "org_status": "complete",
            "verified_users": [
                {
                    "id": 15,
                    "first_name": "Destinee",
                    "last_name": "Church",
                    "email": "destinee.church@outlook.com",
                    "job_title": "Landscape Architect",
                    "telephone": "101-656-8415"
                }
            ]
        },
        {
            "type": "ov",
            "name": "OV",
            "description": "Normal Organization Validation",
            "date_created": "2018-10-15T21:46:49+00:00",
            "validated_until": "2019-11-15T22:46:49+00:00",
            "status": "active",
            "dcv_status": "complete",
            "org_status": "complete"
        }
    ]
}

响应参数

名称 类型 描述
validations array 域的验证详细信息的列表。
.. type string 验证类型标识符。
请参阅词汇表 - 验证类型
.. name string 验证类型的名称。
.. description string 验证类型的描述。
.. date_created string 验证域的时间戳。
格式:UTC 时区和 ISO 8601 日期
.. validated_until string 域验证过期的时间戳。
格式:UTC 时区和 ISO 8601 日期
.. status string 验证的状态。
可能的值:pending,active
.. dcv_status string 域控制验证状态
.. org_status string 组织验证状态。
.. verified_users string 已针对特定的验证类型进行验证的用户列表。
.. .. id int 用户 ID。
.. .. first_name string 用户的名字。
.. .. last_name string 用户的姓氏。
.. .. email string 用户的电子邮件地址。
.. .. job_title string 用户的职位名称。
.. .. telephone string 用户的电话号码。