使用此端点列出所有证书订单。
将 ACCEPT
标头更改为 text/csv
以返回结果的 CSV 输出。
curl -X GET \
https://www.digicert.com/services/v2/order/certificate \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/order/certificate"
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/order/certificate"
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/order/certificate',
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);
});
{
"orders": [
{
"id": 123456,
"certificate": {
"id": 104,
"common_name": "example.com",
"dns_names": [
"example2.com",
"example3.com"
],
"signature_hash": "sha256"
},
"status": "pending",
"is_renewed": false,
"date_created": "2018-10-16T17:29:56+00:00",
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llc"
},
"validity_years": 1,
"disable_renewal_notifications": false,
"container": {
"id": 14,
"name": "DigiCert Inc."
},
"product": {
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate"
},
"has_duplicates": false,
"product_name_id": "ssl_plus"
},
{
"id": 123457,
"certificate": {
"id": 105,
"common_name": "example.org",
"dns_names": [
"sub.example.org"
],
"valid_till": "2020-04-30",
"days_remaining": 289,
"signature_hash": "sha256"
},
"status": "issued",
"is_renewed": false,
"date_created": "2019-04-30T18:02:50+00:00",
"organization": [],
"validity_years": 1,
"container": {
"id": 14,
"name": "CertCentral"
},
"product": {
"name_id": "ssl_dv_geotrust",
"name": "GeoTrust Standard DV",
"type": "dv_ssl_certificate"
},
"has_duplicates": false,
"product_name_id": "ssl_dv_geotrust"
},
...
],
"page": {
"total": 31,
"limit": 0,
"offset": 0
}
}
名称 | 请求/选项 | 类型 | 描述 |
---|---|---|---|
offset | 可选 | int |
在特定分页页码开始列表。 默认值: 0
|
limit | 可选 | int |
将列表截断到指定的分页页码。 最大值: 1000 (默认)
|
名称 | 类型 | 描述 |
---|---|---|
orders | array | 请求返回的订单的列表。 |
.. id | int | 订单编号。 |
.. certificate | object | 订购的证书的相关详细信息。 |
.. .. id | int | 证书编号。 |
.. .. common_name | string | 证书保护的名称。 |
.. .. dns_names | array | 证书保护的其他名称的列表。 |
.. .. valid_till | string |
证书到期日期。 格式: yyyy-MM-dd
|
.. .. days_remaining | int | 证书到期的剩余天数。 |
.. .. signature_hash | string | 证书使用的签名算法。 |
.. status | string |
订单的状态。 请参阅词汇表 - 订单状态 |
.. is_renewed | bool | 指定订单是否已续订。 |
.. date_created | string |
订单创建日期。 格式:UTC 时区和 ISO 8601 日期 |
.. organization | object | 与订单关联的组织的相关详细信息。 |
.. .. id | int | 组织编号。 |
.. .. name | string | 组织的法定名称。 |
.. validity_years | int | 证书的有效年限。 |
.. disable_renewal_notifications | bool | 指定是否启用续订通知。 |
.. container | object | 与订单关联的容器的相关详细信息。 |
.. .. id | int | 容器 ID。 |
.. .. name | string | 容器的名称。 |
.. product | object | 关于订购的产品的详细信息。 |
.. .. name_id | string |
产品的名称 ID。 请参阅词汇表 - 产品标识符 |
.. .. name | string |
显示产品名称。 请参阅词汇表 - 产品标识符 |
.. .. type | string |
产品类型。 请参阅词汇表 - 产品类型 |
.. has_duplicates | bool | 指定是否存在副本。 |
.. product_name_id | string |
产品的名称 ID。 请参阅词汇表 - 产品标识符 |
页码 | object |
关于结果的详细信息。 使用 URL 查询字符串进行修改。 |