이 엔드포인트를 사용하여 사용 권한 동작 수행이 허용된 모든 컨테이너를 나열합니다.
curl -X GET \
'https://www.digicert.com/services/v2/authorization/{{permission}}/container' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/authorization/{{permission}}/container"
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/authorization/{{permission}}/container"
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/authorization/{{permission}}/container',
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": 10001,
"parent_id": 0,
"name": "My Organization",
"is_active": true
},
{
"id": 10022,
"parent_id": 10001,
"name": "IT",
"is_active": true
},
{
"id": 10023,
"parent_id": 10001,
"name": "Accounting",
"is_active": true
},
{
"id": 10024,
"parent_id": 10001,
"name": "SREs",
"is_active": true
}
]
}
이름 | 유형 | 설명 |
---|---|---|
containers | array | 특정 사용 권한이 있는 컨테이너의 목록입니다. |
.. id | int | 컨테이너 ID입니다. |
.. parent_id | int |
부모 컨테이너의 ID입니다. 값이 0 인 경우 계정에 대한 주요 컨테이너를 나타냅니다.
|
.. name | string | 컨테이너의 이름입니다. |
.. is_active | bool |
컨테이너의 활성 상태입니다. 가능한 값: true , false
|