이 엔트포인트를 사용하여 전체 계정에 대해 다음 90, 60 및 30일 후에 만료되는 인증서의 수를 받습니다. 지난 7일 동안 만료된 인증서도 반환됩니다.
curl -X GET \
https://www.digicert.com/services/v2/report/order/expiring \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/report/order/expiring"
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/report/order/expiring"
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/report/order/expiring',
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);
});
{
"expiring_orders": [
{
"days_expiring": 90,
"order_count": 10
},
{
"days_expiring": 60,
"order_count": 13
},
{
"days_expiring": 30,
"order_count": 3
},
{
"days_expiring": -7,
"order_count": 1
}
]
}
이름 | 필수/옵션 | 유형 | 설명 |
---|---|---|---|
container_id | 옵션 | int | 결과를 특정 컨테이너로 제한합니다. |
이름 | 유형 | 설명 |
---|---|---|
expiring_orders | array | 요청으로 반환한 만료되는 주문의 목록입니다. |
.. days_expiring | int |
인증서 만료까지 날짜의 수입니다. 가능한 값: 90 , 60 , 30 , -7 (지난 7일 동안 만료된 인증서)
|
.. order_count | int |
days_expiring 범주의 인증서의 수입니다.
|