Используйте эту конечную точку для ознакомления с подробной информацией о запросе.
curl -X GET \
https://www.digicert.com/services/v2/request/{{request_id}}\
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/request/{{request_id}}"
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/request/{{request_id}}"
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/request/{{request_id}}',
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": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "approved",
"date_processed": "2018-11-02T16:44:19+00:00",
"requester": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"reviewer": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"processor": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"order": {
"id": 12345678,
"certificate": {
"common_name": "example.com",
"dns_names": [
"example.com",
"www.example.com"
],
"date_created": "2018-10-16T20:05:28+00:00",
"csr": "<csr>",
"organization": {
"id": 112233
},
"organization_units": [
"Not Fake Company Inc."
],
"server_platform": {
"id": -1,
"name": "OTHER",
"install_url": "http://www.digicert.com/SSL-certificate-installation.htm",
"csr_url": "http://www.digicert.com/csr-creation.htm"
},
"signature_hash": "sha256",
"key_size": 2048,
"ca_cert": {
"id": "<ca_cert_id>",
"name": "DigiCert SHA2 Secure Server CA"
}
},
"status": "needs_approval",
"is_renewal": false,
"date_created": "2018-10-16T20:05:28+00:00",
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llcasdf",
"assumed_name": "Epigyne Unwieldiness",
"display_name": "Epigyne Unwieldiness llcasdf (Epigyne Unwieldiness)",
"city": "Minneapolis",
"state": "mn",
"country": "us"
},
"validity_years": 1,
"disable_renewal_notifications": false,
"auto_renew": 0,
"container": {
"id": 5,
"name": "History Department",
"is_active": true
},
"product": {
"name_id": "ssl_plus",
"type": "ssl_certificate",
"validation_type": "ov",
"validation_name": "OV",
"validation_description": "Normal Organization Validation"
},
"organization_contact": {
"first_name": "Gia",
"last_name": "Booth",
"email": "gia.booth@inbox.com",
"job_title": "Clinical Laboratory Technician",
"telephone": "666-186-6450",
"telephone_extension": "736"
},
"technical_contact": {
"first_name": "Gia",
"last_name": "Booth",
"email": "gia.booth@inbox.com",
"job_title": "Clinical Laboratory Technician",
"telephone": "666-186-6450",
"telephone_extension": "736"
},
"user": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"requests": [
{
"id": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "pending",
"comments": "Form autofill."
}
],
"unsubmitted_domains": [
"underlier-stanislavsky.org"
],
"price": 175,
"is_out_of_contract": false,
"payment_method": "balance",
"product_name_id": "ssl_plus",
"disable_issuance_email": false
},
"comments": "New certificate."
}
{
"id": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "pending",
"requester": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"order": {
"id": 12345678,
"certificate": {
"common_name": "example.com",
"dns_names": [
"example.com",
"www.example.com"
],
"date_created": "2018-10-16T20:05:28+00:00",
"csr": "<csr>",
"organization": {
"id": 112233
},
"organization_units": [
"Not Fake Company Inc."
],
"server_platform": {
"id": -1,
"name": "OTHER",
"install_url": "http://www.digicert.com/SSL-certificate-installation.htm",
"csr_url": "http://www.digicert.com/csr-creation.htm"
},
"signature_hash": "sha256",
"key_size": 2048,
"ca_cert": {
"id": "<ca_cert_id>",
"name": "DigiCert SHA2 Secure Server CA"
}
},
"status": "needs_approval",
"is_renewal": false,
"date_created": "2018-10-16T20:05:28+00:00",
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llcasdf",
"assumed_name": "Epigyne Unwieldiness",
"display_name": "Epigyne Unwieldiness llcasdf (Epigyne Unwieldiness)",
"city": "Minneapolis",
"state": "mn",
"country": "us"
},
"validity_years": 1,
"disable_renewal_notifications": false,
"auto_renew": 0,
"container": {
"id": 5,
"name": "History Department",
"is_active": true
},
"product": {
"name_id": "ssl_plus",
"type": "ssl_certificate",
"validation_type": "ov",
"validation_name": "OV",
"validation_description": "Normal Organization Validation"
},
"organization_contact": {
"first_name": "Gia",
"last_name": "Booth",
"email": "gia.booth@inbox.com",
"job_title": "Clinical Laboratory Technician",
"telephone": "666-186-6450",
"telephone_extension": "736"
},
"technical_contact": {
"first_name": "Gia",
"last_name": "Booth",
"email": "gia.booth@inbox.com",
"job_title": "Clinical Laboratory Technician",
"telephone": "666-186-6450",
"telephone_extension": "736"
},
"user": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"requests": [
{
"id": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "pending",
"comments": "Form autofill."
}
],
"unsubmitted_domains": [
"underlier-stanislavsky.org"
],
"price": 175,
"is_out_of_contract": false,
"payment_method": "balance",
"product_name_id": "ssl_plus",
"disable_issuance_email": false
},
"comments": "New certificate."
}
Имя | Тип | Описание |
---|---|---|
id | int | Идентификатор запроса. |
date | string |
Отметка времени предоставления запроса. Формат: Часовой пояс UTC (универсальное глобальное время) и дата в формате ISO 8601 |
type | string |
Тип запроса. Допустимые значения: new_request , revoke , duplicate , reissue
|
status | string |
Статус запроса. Допустимые значения: submitted , pending , approved , rejected
|
date_processed | string |
Отметка времени обработки запроса. Не указывается в ответе, если статус pending .Формат: Часовой пояс UTC (универсальное глобальное время) и дата в формате ISO 8601 |
requester | object |
Подробные сведения о пользователе, предоставившем запрос. См. Структуры — Объект подробных сведений о пользователе. |
reviewer | object |
Подробные сведения о пользователе, проверившем запрос. См. Структуры — Объект подробных сведений о пользователе. |
processor | object |
Подробные сведения о пользователе, обработавшем запрос. См. Структуры — Объект подробных сведений о пользователе. |
заказ | object | Подробные сведения о заказе, связанном с запросом. |
.. unsubmitted_domains | array | Перечень доменов, представленных вместе с запросом, которые не были проверены или добавлены к учетной записи. |
comments | string | Сообщение о запросе. |