使用此端点获取关于您的 CertCentral 帐户的详细信息。
curl -X GET \
https://www.digicert.com/services/v2/account \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account"
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/account"
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/account',
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": 112234,
"make_renewal_calls": true,
"express_install_enabled": false,
"admin_email": "notifications@digicert.com, will.smith@digicert.com",
"display_rep": true,
"rep_name": "Jane",
"rep_phone": "Smith",
"rep_email": "jane.smith@digicert.com",
"balance_negative_limit": 0,
"pricing_model": "flatfee",
"cert_transparency": "embed",
"cert_central_type": "retail"
}
名称 | 类型 | 描述 |
---|---|---|
id | int | 帐号。 |
make_renewal_calls | bool | 指定是否启用续订呼叫。 |
express_install_enabled | bool | 指定是否启用快速安装。 |
admin_email | string | 复制到为帐户发出的所有电子邮件上的电子邮件地址。 |
display_rep | bool | 指定是否在 CertCentral UI 中显示客户经理。 |
rep_name | string | 您的客户经理的姓名。 |
rep_phone | string | 您的客户经理的电话号码。 |
rep_email | string | 您的客户经理的电子邮件地址。 |
balance_negative_limit | int | 帐户余额便为负值的美元金额。 |
pricing_model | string |
帐户的当前定价模式。 可能的值: flatfee ,percert ,combined ,none
|
cert_transparency | string |
指定是否在公共 CT 日志中记录证书。 可能的值: embed (记录),off (不记录)
|
cert_central_type | string |
CertCentral 帐户类型。 可能的值: retail , enterprise , reseller
|