이 엔드포인트를 사용하여 모든 하위 계정을 나열합니다.
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 쿼리 문자열을 사용하여 수정합니다. |