このエンドポイントを使用して、ドメインについての認証詳細を取得します。
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 | ユーザーの電話番号 |