--- title: "Parent container info" source_url: https://dev.digicert.com/certcentral-apis/services-api/containers/parent-container-info.html api_method: GET api_endpoint: "/services/v2/container/{{container_id}}/parent" api_url: "https://www.digicert.com/services/v2/container/{{container_id}}/parent" --- **GET** `https://www.digicert.com/services/v2/container/{{container_id}}/parent` Use this endpoint to get details about a container's parent. ## Example requests and responses **cURL** ```bash curl -X GET \ https://www.digicert.com/services/v2/container/{{container_id}}/parent \ -H 'Content-Type: application/json' \ -H 'X-DC-DEVKEY: {{api_key}}' ``` **Python** ```python import requests url = "https://www.digicert.com/services/v2/container/{{container_id}}/parent" headers = { 'X-DC-DEVKEY': "{{api_key}}", 'Content-Type': "application/json" } response = requests.request("GET", url, headers=headers) print(response.text) ``` **Go** ```go package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://www.digicert.com/services/v2/container/{{container_id}}/parent" 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)) } ``` **NodeJS** ```javascript var request = require("request"); var options = { method: 'GET', url: 'https://www.digicert.com/services/v2/container/{{container_id}}/parent', 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); }); ``` ## 200 OK ```json { "id": 3, "public_id": "", "name": "Company Name, Inc.", "description": "Your company description.", "parent_id": 0, "template_id": 5, "has_logo": true, "is_active": true, "allowed_domain_names": [ "www.example.com", "example.com" ] } ``` ## Response parameters
Name Type Description
id int Container ID.
public_id string Public ID of the container.
name string Name of the container.
description string Description for the container.
parent_id int ID of the container's parent.
template_id int Template ID of the container.
has_logo bool Custom logo status of the container.
is_active bool Active status of the container.
allowed_domain_names array List of domains that can be used with the container.