이 엔드포인트를 사용하여 도메인에 대한 상세 정보를 받습니다.
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 | 컨테이너의 활성 상태입니다. |