このエンドポイントを使用して、すべてのサブアカウントを一覧表示します。
curl -X GET \
https://www.digicert.com/services/v2/account/subaccount \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/subaccount"
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"
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',
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);
});
{
"subaccounts": [
{
"account_id": 112233,
"account_type": "reseller",
"organization_name": "Number one organization",
"date_created": "2018-11-29 01:48:04",
"account_manager": "Jim James"
},
{
"account_id": 112234,
"account_type": "enterprise",
"organization_name": "Number two organization",
"date_created": "2018-11-29 18:25:04",
"account_manager": "Jill Valentine"
},
{
"account_id": 112235,
"account_type": "retail",
"organization_name": "Number three organization",
"date_created": "2018-12-04 15:24:43",
"account_manager": "Rick Roll"
}
],
"page": {
"total": 3,
"limit": 1000,
"offset": 0
}
}
名前 | 申請/オプション | 種別 | 説明 |
---|---|---|---|
offset | 任意 | int |
ページネーション用にリストを指定番号からはじめます。 デフォルト: 0
|
limit | 任意 | int |
ページネーション用にリストを指定番号に切り捨てます。 最大: 1000 (デフォルト)
|
名前 | 種別 | 説明 |
---|---|---|
child_accounts | array | すべてのサブアカウントのリスト |
.. account_id | int | アカウント ID |
.. account_type | string |
サブアカウントタイプを定義します。 「用語集 — サブアカウントタイプ」を参照してください |
.. organization_name | string | サブアカウントのプライマリ組織の法人名 |
.. date_created | string |
サブアカウント作成時のタイムスタップ 形式: yyyy-MM-dd HH:mm:ss
|
.. account_manager | string | サブアカウントのアカウント代理人名 |
ページ | object |
結果についての詳細 URL クエリ文字列を使用して修正済 |