使用此端點取得網域的驗證詳細資料。
curl -X GET \
'https://www.digicert.com/services/v2/domain/{{domain_id}}/validation' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
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)
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))
}
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);
});
{
"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 | 使用者的姓氏。 |
string | 使用者的電郵地址。 | |
.. .. job_title | string | 使用者的職稱。 |
.. .. telephone | string | 使用者的電話號碼。 |