使用此端点列出分配给容器的所有组织。
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 | 组织编号。 |
.. 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 |
组织可以使用的验证类型。 请参阅词汇表 - 验证类型 |