このエンドポイントを使用して、ドメインについての詳細を取得します。
curl -X GET \
'https://www.digicert.com/services/v2/domain/{{domain_id}}?include_dcv=true&include_validation=true' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/domain/{{domain_id}}"
querystring = {"include_dcv":"true","include_validation":"true"}
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/domain/{{domain_id}}?include_dcv=true&include_validation=true"
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}}',
qs: { include_dcv: 'true', include_validation: 'true' },
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);
});
{
"id": 76,
"is_active": true,
"status": "approved",
"name": "overtorture-microspectrophotometry.org",
"date_created": "2018-10-15T21:46:29+00:00",
"organization": {
"id": 112233,
"status": "active",
"name": "Palaeontography Enigmatic Corp.",
"assumed_name": "Palaeontography Enigmatic",
"display_name": "Palaeontography Enigmatic Corp. (Palaeontography Enigmatic)",
"is_active": "1"
},
"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"
}
],
"dcv_method": "email",
"dcv_expiration": {
"ov": "2021-01-01T23:59:59+00:00"
"ev": "2020-01-01T23:59:59+00:00"
},
"container": {
"id": 4,
"parent_id": 0,
"name": "Container Name",
"is_active": true
}
}
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
include_dcv | 任意 | bool |
true の場合に、DCV 情報を含めます。デフォルト: false
|
include_validation | 任意 | bool |
true の場合に、認証情報を含めます。デフォルト: false
|
名前 | 種別 | 説明 |
---|---|---|
id | int | ドメイン ID. |
is_active | bool | ドメインのアクティブステータス |
status | string | ドメインの認証ステータス |
name | string | ドメイン名 |
date_created | string |
ドメインを追加した時点のタイムスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
organization | object | ドメインに添付された組織 |
.. id | int | 組織 ID. |
.. status | string | 組織の認証ステータス |
.. name | string | 組織の法人名 |
.. assumed_name | string |
組織の公称 別称 DBA 名 |
.. display_name | string |
組織のフルネーム 名前 + assumed_nameを使用して構築 |
.. is_active | string | 組織のアクティブステータス |
validations | array |
ドメイン用の認証詳細のリスト URL 照会の場合のみ返す include_validation=true .「構造 — 認証オプジェクト」を参照してください。 |
dcv_method | string |
ドメイン用に構成されたドメイン名糊王権確認方法 URL 照会の場合のみ返す include_validation=true .「用語集 — DCV 方法」を参照してください。 |
dcv_token | object |
DCV 方法がランダム値トークンを使用している場合、このオブジェクトが返され、トークン情報を含みます。 URL 照会の場合のみ返す include_validation=true .
|
.. token | string | ドメイン名の利用権を確認するのに使用するランダム値 |
.. status | string | ドメイン認証プロセスのステータス |
.. expiration_date | string |
トークンが有効期限切れとなる時点のタイムスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
dcv_expiration | object |
DCV が完了した場合、このおプジェクトが返され、認証がいつ有効期限切れになるかについて情報が記載されます。 URL 照会の場合のみ返す include_validation=true .
|
.. ov | string |
認証が有効期限切れするときのタイプスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
.. ev | string |
認証が有効期限切れするときのタイプスタンプ 形式:UTC タイムゾーンと ISO 8601 日付 |
container | object | ドメインを添付する先のコンテナ |
.. id | int | コンテナ ID |
.. parent_id | int | コンテナの親の ID |
.. name | string | コンテナ名 |
.. is_active | bool | コンテナのアクティブステータス |