Используйте эту конечную точку для получения сведений об общем количестве запросов и количестве запросов по типу для вашей учетной записи.
curl -X GET \
'https://www.digicert.com/services/v2/report/request' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/report/request"
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/report/request"
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/request',
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);
});
{
"request": {
"total": 17,
"types": [
{
"type": "new_request",
"request_count": 7
},
{
"type": "revoke",
"request_count": 4
},
{
"type": "duplicate",
"request_count": 5
},
{
"type": "reissue",
"request_count": 1
}
]
}
}
Имя | Обязательный/Необязательный | Тип | Описание |
---|---|---|---|
container_id | необязательный | int | Ограничить результаты конкретным контейнером. |
Имя | Тип | Описание |
---|---|---|
request | object | Список находящихся на рассмотрении запросов. |
.. total | int | Общее количество находящихся на рассмотрении запросов. |
.. types | array | Список находящихся на рассмотрении запросов, разбитых на категории по типу запроса. |
.. .. type | string |
Тип запроса. Допустимые значения: new_request , revoke , duplicate , reissue
|
.. .. request_count | int | Количество запросов указанного типа. |