使用此端點取得有關您的 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 | 帳戶 ID。 |
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
|