이 엔드포인트를 사용하여 컨테이너의 모든 자신 컨테이너를 나열합니다.
컨테이너의 바로 아래 자녀만 반환됩니다.
curl -X GET \
https://www.digicert.com/services/v2/container/{{container_id}}/children \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/container/{{container_id}}/children"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/container/{{container_id}}/children"
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/container/{{container_id}}/children',
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);
});
{
"containers": [
{
"id": 4,
"public_id": "<public_id>",
"name": "Math Department",
"description": "Includes Precalculus, Calculus, Trigonometry",
"parent_id": 3,
"template_id": 6,
"has_logo": true,
"is_active": true,
"allowed_domain_names": [
"test1.com",
"test2.com"
]
},
{
"id": 5,
"public_id": "<public_id>",
"name": "Science Department",
"description": "Includes Biology, Chemistry, Geology",
"parent_id": 3,
"template_id": 6,
"has_logo": true,
"is_active": true,
"allowed_domain_names": [
"test1.com",
"test2.com"
]
}
]
}
이름 | 유형 | 설명 |
---|---|---|
containers | array | 모든 자녀 컨테이너의 목록입니다. |
.. id | int | 컨테이너 ID입니다. |
.. public_id | string | 컨테이너의 공개 ID입니다. |
.. name | string | 컨테이너의 이름입니다. |
.. description | string | 컨테이너에 대한 설명입니다. |
.. parent_id | id | 컨테이너의 부모의 ID입니다. |
.. template_id | id | 컨테이너의 템플릿 ID입니다. |
.. has_logo | bool | 컨테이너의 사용자 지정 로고 상태입니다. |
.. is_active | bool | 컨테이너의 활성 상태입니다. |
.. allowed_domain_names | array | 컨테이너와 함께 사용할 있는 도메인의 목록입니다. |