이 엔드포인트를 사용하여 컨테이너에 할당된 모든 조직을 나열합니다.
curl -X GET \
https://www.digicert.com/services/v2/container/{{container_id}}/order/organization \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/container/{{container_id}}/order/organization"
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}}/order/organization"
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}}/order/organization',
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);
});
{
"organizations": [
{
"id": 112233,
"status": "active",
"name": "Example Organization Inc.",
"assumed_name": "Example Org",
"display_name": "Example Organization",
"is_active": true,
"address": "123 Fake Stree",
"address2": "Floor 55",
"zip": "84043",
"city": "Lehi",
"state": "ut",
"country": "us",
"telephone": "801-701-9600",
"validations": [
{
"type": "ov",
"name": "OV",
"description": "Normal Organization Validation",
"date_created": "2018-10-09T19:29:02+00:00",
"validated_until": "2019-11-09T20:28:55+00:00",
"status": "active"
}
]
}
]
}
이름 | 유형 | 설명 |
---|---|---|
organizations | array | 컨테이너에 할당된 조직의 목록입니다. |
.. id | int | 조직 ID입니다. |
.. status | string |
조직 상태입니다. 가능한 값: active , inactive
|
.. name | string | 조직의 법인명입니다. |
.. assumed_name | string |
조직의 공개 이름입니다. DBA 이름이라고도 합니다. |
.. display_name | string |
조직의 전체 이름입니다. 이름 + assumed_name을 사용하여 구성됩니다. |
.. is_active | bool | 컨테이너의 활성 상태입니다. |
.. address | string | 조직의 주소입니다. |
.. address2 | string | |
.. zip | string | 조직의 우편 번호입니다. |
.. city | string | 조직이 위치한 도시입니다. |
.. state | string | 조직이 위치한 주/도입니다. |
.. country | string | 조직이 위치한 국가입니다. |
.. telephone | string | 조직 전화 번호입니다. |
.. validations | array |
조직이 사용할 수 있는 유효성 검사 유형입니다. 용어집 — 유효성 검사를 참조하십시오. |