このエンドポイントを使用して、サブアカウントまたはサブ・サブアカウントが実行した証明書オーダーについての詳細を取得します。
curl -X GET \
'https://www.digicert.com/services/v2/account/subaccount/order/{{order_id}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/subaccount/order/{{order_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/account/subaccount/order/{{order_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/account/subaccount/order/{{order_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": 123456,
"certificate": {
"id": 101015,
"common_name": "example.com",
"dns_names": [
"sub.example.com"
],
"organization_units": [
"Sales department"
],
"signature_hash": "sha256"
},
"organization": {
"id": 334455,
"name": "Real Organization, LLC",
"assumed_name": "Real Organization",
"display_name": "Real Organization, LLC (Real Organization)"
},
"subaccount": {
"account_id": 123445,
"account_type": "enterprise",
"organization_name": "Sub account organization"
},
"product": {
"name_id": "ssl_securesite",
"name": "Secure Site SSL",
"type": "ssl_certificate"
},
"order_price": {
"cost": 399,
"currency": "USD"
},
"status": "pending",
"number_of_sans": 1,
"date_created": "2019-06-21T09:06:47+00:00",
"validity_years": 1
}
{
"id": 123457,
"certificate": {
"id": 101015,
"thumbprint": "03F6",
"serial_number": "0FD",
"common_name": "example.com",
"dns_names": [
"sub.example.com",
"sub2.example.com",
"sub3.example.com",
"sub4.example.com"
],
"valid_from": "2019-06-11",
"valid_till": "2020-06-15",
"organization_units": [
"Sales department"
],
"signature_hash": "sha256"
},
"organization": {
"id": 334455,
"name": "Real Organization, LLC",
"assumed_name": "Real Organization",
"display_name": "Real Organization, LLC (Real Organization)"
},
"subaccount": {
"account_id": 123445,
"account_type": "enterprise",
"organization_name": "Sub account organization"
},
"product": {
"name_id": "ssl_multi_domain",
"name": "Multi-Domain SSL",
"type": "ssl_certificate"
},
"order_price": {
"cost": 358,
"currency": "USD"
},
"status": "issued",
"number_of_sans": 4,
"date_created": "2019-06-11T07:08:04+00:00",
"date_issued": "2019-06-11T07:09:00+00:00",
"validity_years": 1
}
{
"id": 123456,
"subaccount": {
"account_id": 123445,
"account_type": "enterprise",
"organization_name": "Sub account organization"
},
"product": {
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate"
},
"order_price": {
"cost": 198,
"currency": "USD"
},
"status": "pending",
"number_of_sans": 1,
"date_created": "2019-05-07T09:33:08+00:00",
"validity_years": 1
}
名前 | 種別 | 説明 |
---|---|---|
id | int | オーダー ID |
certificate | object |
オーダーした証明書についての詳細 即時サブアカウントが実行したオーダーに対してのみ返されます。 |
.. id | int | 証明書 ID |
.. thumbprint | string |
証明書のサムプリント 証明書ステータスが issued の場合のみ返されます。
|
.. serial_number | string |
証明書のシリアル番号 証明書ステータスが issued の場合のみ返されます。
|
.. common_name | string | 証明書が安全保護する名前 |
.. dns_names | array | 証明書が安全保護する追加名のリスト |
.. valid_till | string |
証明書有効期間終了時の日付。 証明書ステータスが issued の場合のみ返されます。形式: yyyy-MM-dd
|
.. organization_units | array | 証明書に記載の組織部門のリスト |
.. signature_hash | string | 証明書が使用する署名アルゴリズム |
organization | object |
オーダーに関連づけられた組織についての詳細 即時サブアカウントが実行したオーダーに対してのみ返されます。 |
.. id | int | 組織 ID. |
.. name | string | 組織の法人名 |
.. assumed_name | string |
組織の公称 別称 DBA 名 |
.. display_name | string |
組織のフルネーム 名前 + assumed_nameを使用して構築 |
subaccount | object | 証明書をオーダーしたサブアカウントについての詳細 |
.. account_id | int | サブアカウント ID |
.. account_type | string | サブアカウントタイプ |
.. organization_name | string | サブアカウントのプライマリ組織 |
product | object | オーダー製品についての詳細 |
.. name_id | string |
製品の名前 ID 「用語集 — 製品識別子」を参照してください |
.. name | string |
製品の表示名 「用語集 — 製品識別子」を参照してください |
.. type | string |
製品タイプ 「用語集 — 製品タイプ」を参照してください |
order_price | object | オーダー価格についての詳細 |
.. cost | int | 合計オーダーコスト |
.. currency | string |
通貨単位 可能な値: USD
|
status | string |
オーダーのステータス 「用語集 — オーダーステータス」を参照してください |
number_of_sans | int |
dns_names アレイのドメイン数
|
date_created | string |
オーダー作成日 形式:UTC タイムゾーンと ISO 8601 日付 |
date_issued | string |
証明書が発行された日付 証明書ステータスが issued の場合のみ返されます。形式: yyyy-MM-dd
|
validity_years | int | 証明書が有効な年数。 |