이 엔드포인트를 사용하여 인증서에 첨부된 메모를 나열합니다.
curl -X GET \
'https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/certificate/{{certificate_id}}/note"
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/certificate/{{certificate_id}}/note',
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);
});
{
"notes": [
{
"date_created": "2019-02-05T21:34:42+00:00",
"text": "Note text.",
"user": {
"id": 123,
"first_name": "Locke",
"last_name": "Cole",
"email": "lock.cole@example.com"
}
}
]
}
이름 | 유형 | 설명 |
---|---|---|
notes | array | 인증서 메모의 목록입니다. |
.. date_created | string |
메모를 만들었을 때의 타임스탬프입니다. 형식: UTC 표준 시간대 ISO 8601 날짜 |
.. text | string | 메모 메시지 텍스트입니다. |
.. user | object | 메모를 추가한 사용자에 대한 상세 정보입니다. |
.. .. id | int | 사용자 ID입니다. |
.. .. first_name | string | 사용자의 이름입니다. |
.. .. last_name | string | 사용자의 성입니다. |
string | 사용자의 이메일 주소입니다. |