價格清單

GET
https://www.digicert.com/services/v2/product/pricing

使用此端點列出您帳戶的產品價格。

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

url = "https://www.digicert.com/services/v2/product/pricing"

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/product/pricing"

	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/product/pricing',
  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
{
  "standard_prices": [
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_plus",
      "name": "Standard SSL",
      "prices": [
        {
          "lifetime": 1,
          "cost": 198,
          "currency": "usd"
        },
        {
          "lifetime": 2,
          "cost": 376,
          "currency": "usd"
        }
      ]
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_multi_domain",
      "name": "Multi-Domain SSL",
      "prices": [
        {
          "lifetime": 1,
          "cost": 358,
          "additional_name_cost": 135,
          "currency": "usd"
        },
        {
          "lifetime": 2,
          "cost": 680,
          "additional_name_cost": 257,
          "currency": "usd"
        }
      ]
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_wildcard",
      "name": "WildCard",
      "prices": [
        {
          "lifetime": 1,
          "cost": 658,
          "additional_name_cost": 658,
          "currency": "usd"
        },
        {
          "lifetime": 2,
          "cost": 1250,
          "additional_name_cost": 1250,
          "currency": "usd"
        }
      ]
    },
    {
      "group_name": "ssl_certificate",
      "name_id": "ssl_ev_plus",
      "name": "EV SSL",
      "prices": [
        {
          "lifetime": 1,
          "cost": 299,
          "currency": "usd"
        },
        {
          "lifetime": 2,
          "cost": 568,
          "currency": "usd"
        }
      ]
    },
    ...
  ]
}

回應參數

名稱 類型 說明
standard_prices array 產品價格的清單。
.. group_name string 產品類別名稱。
請參閱詞彙 — 產品群組
.. name_id string 產品名稱 ID。
請參閱詞彙 — 產品識別碼
.. name string 顯示產品名稱。
.. prices array 產品價格的清單。
.. .. lifetime int 驗證期間年數。
.. .. cost int 基於驗證期間的產品費用。
.. .. additional_name_cost int 其他 SAN 的費用。
.. .. currency string 貨幣單位。
可能的值:USD