Use this endpoint to get details about a container.
curl -X GET \
https://www.digicert.com/services/v2/container/{{container_id}} \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/container/{{container_id}}"
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}}"
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}}',
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);
});
{
"id": 6,
"public_id": "<public_id>",
"name": "Sales Department",
"description": "Includes sales engineers",
"parent_id": 2,
"template_id": 6,
"ekey": "<ekey>",
"has_logo": true,
"is_active": true,
"user_id_assignments": [
"125038"
],
"allowed_domain_names": [
"example1.com",
"example2.com"
],
"organization_assignments": [
{
"id": 7,
"status": "active",
"name": "Organization Name, LLC",
"display_name": "Organization Name",
"is_active": "1"
}
]
}
Name | Type | Description |
---|---|---|
id | int | Container ID. |
public_id | string | Public ID of the container. |
name | string | Name of the container. |
description | string | Description of the container. |
parent_id | id | ID of the parent container. |
template_id | id | ID of the template assigned to the container. |
ekey | string | Unique key used for custom branding. |
has_logo | bool | Custom logo status for container. |
is_active | bool | Active status of the container. |
user_id_assignments | array | List of users assigned to the container. |
allowed_domain_names | array | List of domains that can be used with the container. |
organization_assignments | array | List of organizations that can be used with the container. |
.. id | int | Organization ID. |
.. status | string |
Organization status. Possible values: active , inactive
|
.. name | string | Legal name of the organization. |
.. display_name | string |
Full name of the organization. Constructed using name + assumed_name. |
.. is_active | string |
Active status identifier. Possible values: 1 (active), 0 (inactive)
|