使用此端點取得與子帳戶有關的資訊。
curl -X GET \
'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}"
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/subaccount/{{subaccount_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/account/subaccount/{{subaccount_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);
});
{
"account_id": 1122339,
"account_type": "reseller",
"organization_name": "Real Organization",
"date_created": "2018-11-29 18:25:04",
"parent_account_id": "1122331",
"billing_account_name": "Billing Account, Inc.",
"billing_account_id": 1122328,
"account_manager": "Jim James",
"bill_parent": false,
"master_user": {
"first_name": "Alan",
"last_name": "Allen",
"email": "alan.allen@example.com",
"job_title": "subreseller",
"telephone": "801-701-9600",
"i18n_language_id": "1",
"container_id": "11223"
},
"organization": {
"id": 121212,
"status": "active",
"name": "Real Organization",
"address": "123 Fake Street",
"zip": "84043",
"city": "Lehi",
"state": "ut",
"country": "us",
"telephone": "801-701-9600",
"is_active": true,
"container": {
"id": 11223,
"parent_id": 0,
"name": "Real Organization",
"is_active": true
}
},
"billing_contact": {
"name": "Alan Allen",
"address": "123 Fake Street",
"city": "Lehi",
"state": "ut",
"zip": "84043",
"country": "us",
"email": "alan.allen@example.com",
"phone": "801-701-9600"
}
}
名稱 | 類型 | 說明 |
---|---|---|
account_id | int | 子帳戶 ID。 |
account_type | string |
定義子帳戶類型。 請參閱詞彙 — 子帳戶類型 |
organization_name | string | 子帳戶的主要組織的法律名稱。 |
date_created | string |
建立子帳戶時的時間戳記。 格式: yyyy-MM-dd HH:mm:ss
|
parent_account_id | string | 子帳戶父項的帳戶 ID。 |
billing_account_name | string | 用於收費的父項帳戶的名稱。 |
billing_account_id | int | 用於收費的父項帳戶的帳戶 ID。 |
account_manager | string | 子帳戶的帳戶代碼的名稱。 |
bill_parent | bool | 指定是否向憑證訂單收取父項帳戶的費用。 |
master_user | object | 與子帳戶系統管理員有關的詳細資料。 |
.. first_name | string | 子帳戶系統管理員的名字。 |
.. last_name | string | 子帳戶系統管理員的姓氏。 |
string | 子帳戶系統管理員的電郵地址。 | |
.. job_title | string | 子帳戶系統管理員的職稱。 |
.. telephone | string | 子帳戶系統管理員的電話號碼。 |
.. i18n_language_id | string | 子帳戶系統管理員的喜好語言。 |
.. container_id | string | 指派給子帳戶系統管理員的容器 ID。 |
organization | object | 與子帳戶的主要組織有關的詳細資料。 |
.. id | int | 組織 ID。 |
.. status | string |
組織狀態。 可能的值: active ,inactive
|
.. name | string | 組織的法律名稱。 |
.. address | string | 組織的地址 |
.. zip | string | 組織的郵遞區號。 |
.. city | string | 組織所位於的城市。 |
.. state | string | 組織所位於的省。 |
.. country | string | 組織所位於的國家。 |
.. telephone | string | 組織電話號碼。 |
.. is_active | bool | 組織的啟用狀態。 |
.. container | object | 附加組織的主要容器。 |
.. .. id | int | 容器 ID。 |
.. .. parent_id | int | 容器的父項的 ID。 |
.. .. name | string | 容器的名稱。 |
.. .. is_active | bool | 容器的啟用狀態。 |
billing_contact | object | 與子帳戶的帳單聯絡人有關的詳細資料。 |
.. name | string | |
.. address | string | |
.. city | string | |
.. state | string | |
.. zip | string | |
.. country | string | |
string | ||
.. phone | string |