使用此端點取得要求的詳細資料。
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 | 要求 ID。 |
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 | 與要求有關的訊息。 |