列出子帳戶產品

GET
https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products

使用此端點列出子帳戶的詳細產品資訊。

若要設定子帳戶的產品限制,請使用「設定子帳戶產品」。

cURL
curl -X GET \
  'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products"

payload = ""
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

response = requests.request("GET", url, data=payload, headers=headers)

print(response.text)
Go
package main

import (
	"fmt"
	"net/http"
	"io/ioutil"
)

func main() {

	url := "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products"

	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
var request = require("request");

var options = { method: 'GET',
  url: 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products',
  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
{
    "currency": "USD",
    "products": [
        {
            "product_name_id": "ssl_plus",
            "product_name": "Standard SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 218,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 414,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                }
            ]
        },
        {
            "product_name_id": "ssl_multi_domain",
            "product_name": "Multi-Domain SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 412,
                    "additional_fqdn_cost": 135,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 782,
                    "additional_fqdn_cost": 257,
                    "additional_wildcard_cost": 0
                }
            ]
        },
        {
            "product_name_id": "ssl_wildcard",
            "product_name": "WildCard",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 688,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 658
                },
                {
                    "lifetime": 2,
                    "cost": 1307,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 1250
                }
            ]
        },
        {
            "product_name_id": "ssl_ev_plus",
            "product_name": "EV SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 344,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                },
                {
                    "lifetime": 2,
                    "cost": 654,
                    "additional_fqdn_cost": 0,
                    "additional_wildcard_cost": 0
                }
            ]
        }
    ]
}

回應參數

名稱 類型 說明
currency string 價格使用的貨幣類型。
可能的值:USD
products array 啟用用戶子帳戶的產品的清單。
.. product_name_id string 產品名稱 ID。
請參閱詞彙 — 產品識別碼
.. product_name string 顯示產品名稱。
.. prices array 產品的價格清單。
.. .. lifetime int 價格適用的有效期限的年數。
.. .. cost int 產品的基礎價格。
.. .. additional_fqdn_cost int 每個新增到訂單中的其他網域名稱 (SAN) 的費用。
.. .. additional_wildcard_cost int 每個新增到訂單中的其他萬用字元網域 (例如 *.example.com) 的費用。