このエンドポイントを使用して、お使いのアカウントのすべてのコンテナを一覧表示します。
curl -X GET \
https://www.digicert.com/services/v2/container \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/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/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/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": 3,
"public_id": "<public_id>",
"name": "Company Name, Inc.",
"parent_id": 0,
"template_id": 5,
"ekey": "<ekey>",
"has_logo": true,
"is_active": true,
"allowed_domain_names": [
"example.com"
]
},
{
"id": 11224,
"public_id": "<public_id>",
"name": "History department",
"description": "For the history department.",
"parent_id": 3,
"template_id": 6,
"ekey": "<ekey>",
"has_logo": false,
"is_active": true,
"allowed_domain_names": [
"example1.com"
],
"organization_assignments": [
{
"id": 7,
"status": "active",
"name": "Organization Name, LLC",
"display_name": "Organization Name",
"is_active": "1"
}
]
},
{
"id": 11225,
"public_id": "<public_id>",
"name": "IT department",
"description": "For the IT department.",
"parent_id": 3,
"template_id": 6,
"ekey": "<ekey>",
"has_logo": false,
"is_active": true,
"user_id_assignments": [
"123456"
],
"allowed_domain_names": [
"example2.com",
"example3.com"
]
}
]
}
名前 | タイプ | 説明 |
---|---|---|
containers | array | すべてのコンテナのリスト |
.. id | int | コンテナ ID |
.. public_id | string | コンテナのパブリック ID |
.. name | string | コンテナ名 |
.. description | string | コンテナの説明 |
.. parent_id | int | コンテナの親の ID |
.. template_id | int | コンテナのテンプレート ID |
.. has_logo | bool | コンテナのカスタムロゴステータス |
.. is_active | bool | コンテナの有効ステータス |
.. user_id_assignments | array | コンテナに割り当てられたユーザーのリスト |
.. allowed_domain_names | array | コンテナとあわせて使用できるドメインのリスト |
.. organization_assignments | array | コンテナに割り当てられた組織オブジェクトのリスト |