使用此端點取得產品的詳細資料。
curl -X GET \
https://www.digicert.com/services/v2/product/{{name_id}} \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/product/{{name_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/product/{{name_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/product/{{name_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);
});
{
"group_name": "ssl_certificate",
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate",
"duplicates_allowed": false,
"allowed_validity_years": [
1,
2
],
"signature_hash_types": {
"allowed_hash_types": [
{
"id": "sha256",
"name": "SHA-256"
},
{
"id": "sha384",
"name": "SHA-384"
},
{
"id": "sha512",
"name": "SHA-512"
}
],
"default_hash_type_id": "sha256"
},
"additional_dns_names_allowed": false,
"increased_compatibility_allowed": true,
"custom_expiration_date_allowed": true,
"csr_required": true,
"allow_auto_renew": true,
"fields": [],
"server_platforms": [
{
"id": 2,
"name": "Apache",
"install_url": "http://www.digicert.com/ssl-certificate-installation-apache.htm",
"csr_url": "http://www.digicert.com/csr-creation-apache.htm"
},
...
],
"license_agreement": "..."
}
名稱 | 類型 | 說明 |
---|---|---|
group_name | string |
產品所屬群組。 請參閱詞彙 — 產品群組名稱 |
name_id | string |
產品識別碼。 請參閱詞彙 — 產品識別碼 |
name | string | 顯示產品名稱。 |
type | string |
產品類型。 請參閱詞彙 — 產品類型 |
duplicates_allowed | bool | 說明產品是否支援複本。 |
allowed_validity_years | array of ints | 產品可以要求的允許有效年份的清單。 |
signature_hash_types | object | 簽章雜湊資訊的容器。 |
.. allowed_hash_types | array | 產品允許的雜湊類型的清單。 |
.. .. id | string |
雜湊識別碼。 請參閱詞彙 — 雜湊類型 |
.. .. name | string | 雜湊名稱。 |
.. default_hash_type_id | string | 產品使用的預設雜湊類型。 |
additional_dns_names_allowed | bool | 說明產品是否允許其他 DNS 名稱。 |
increased_compatibility_allowed | bool |
說明產品是否允許增強相容性選項。 請參閱 DigiCert SSL 相容性 |
custom_expiration_date_allowed | bool | 說明是否可以設定用於產品的自訂到期日。 |
csr_required | bool | 說明要求產品類型時是否需要 CSR。 |
allow_auto_renew | bool | 說明是否可以自動續訂產品。 |
fields | array | |
server_platforms | array | 列出與產品相容的伺服器平台的清單。 |
.. id | int |
伺服器平台 ID。 請參閱詞彙 — 伺服器平台 |
.. name | string | 伺服器平台的名稱。 |
.. install_url | string | 安裝指示 URL。 |
.. csr_url | string | CSR 建立指示 URL. |
.. best_format | string |
傳回用於伺服器平台的預設憑證格式。 請參閱詞彙 — 憑證格式 |
license_agreement | string | 包含「憑證服務合約」文字的很長字串。 |