Unterkonto-Produkte bestimmen

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

Verwenden Sie diesen Endpunkt, um die Produktverfügbarkeit und die Preisgestaltung für ein Unterkonto einzustellen.

Dieser Endpunkt widerspricht dem products-Array. Jedes vorhandene Array wird mit dem gesendeten Array überschrieben.

cURL
curl -X PUT \
  'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}' \
  -d '{
    "products": [
        {
            "product_name_id": "ssl_plus"
        },
        {
            "product_name_id": "ssl_multi_domain",
            "product_name": "Multi-Domain SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 412,
                    "additional_fqdn_cost": 1351
                },
                {
                    "lifetime": 2,
                    "cost": 782,
                    "additional_fqdn_cost": 257
                }
            ]
        },
        {
            "product_name_id": "ssl_wildcard",
            "product_name": "WildCard",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 688,
                    "additional_wildcard_cost": 658
                },
                {
                    "lifetime": 2,
                    "cost": 1307,
                    "additional_wildcard_cost": 1250
                }
            ]
        },
        {
            "product_name_id": "ssl_ev_plus",
            "product_name": "EV SSL",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 344
                },
                {
                    "lifetime": 2,
                    "cost": 654
                }
            ]
        },
        {
            "product_name_id": "ssl_ev_multi_domain",
            "product_name": "EV Multi-Domain",
            "prices": [
                {
                    "lifetime": 1,
                    "cost": 574,
                    "additional_fqdn_cost": 168
                },
                {
                    "lifetime": 2,
                    "cost": 1090,
                    "additional_fqdn_cost": 319
                }
            ]
        }
    ]
}'
Python
import requests

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

payload = "{\n    \"products\": [\n        {\n            \"product_name_id\": \"ssl_plus\"\n        },\n        {\n            \"product_name_id\": \"ssl_multi_domain\",\n            \"product_name\": \"Multi-Domain SSL\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 412,\n                    \"additional_fqdn_cost\": 1351\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 782,\n                    \"additional_fqdn_cost\": 257\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_wildcard\",\n            \"product_name\": \"WildCard\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 688,\n                    \"additional_wildcard_cost\": 658\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 1307,\n                    \"additional_wildcard_cost\": 1250\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_ev_plus\",\n            \"product_name\": \"EV SSL\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 344\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 654\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_ev_multi_domain\",\n            \"product_name\": \"EV Multi-Domain\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 574,\n                    \"additional_fqdn_cost\": 168\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 1090,\n                    \"additional_fqdn_cost\": 319\n                }\n            ]\n        }\n    ]\n}"
headers = {
    'X-DC-DEVKEY': "{{api_key}}",
    'Content-Type': "application/json"
    }

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

print(response.text)
Go
package main

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

func main() {

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

	payload := strings.NewReader("{\n    \"products\": [\n        {\n            \"product_name_id\": \"ssl_plus\"\n        },\n        {\n            \"product_name_id\": \"ssl_multi_domain\",\n            \"product_name\": \"Multi-Domain SSL\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 412,\n                    \"additional_fqdn_cost\": 1351\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 782,\n                    \"additional_fqdn_cost\": 257\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_wildcard\",\n            \"product_name\": \"WildCard\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 688,\n                    \"additional_wildcard_cost\": 658\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 1307,\n                    \"additional_wildcard_cost\": 1250\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_ev_plus\",\n            \"product_name\": \"EV SSL\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 344\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 654\n                }\n            ]\n        },\n        {\n            \"product_name_id\": \"ssl_ev_multi_domain\",\n            \"product_name\": \"EV Multi-Domain\",\n            \"prices\": [\n                {\n                    \"lifetime\": 1,\n                    \"cost\": 574,\n                    \"additional_fqdn_cost\": 168\n                },\n                {\n                    \"lifetime\": 2,\n                    \"cost\": 1090,\n                    \"additional_fqdn_cost\": 319\n                }\n            ]\n        }\n    ]\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	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: 'PUT',
  url: 'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}/products',
  headers: 
   { 'Content-Type': 'application/json',
     'X-DC-DEVKEY': '{{api_key}}' },
  body: 
   { products: 
      [ { product_name_id: 'ssl_plus' },
        { product_name_id: 'ssl_multi_domain',
          product_name: 'Multi-Domain SSL',
          prices: 
           [ { lifetime: 1, cost: 412, additional_fqdn_cost: 1351 },
             { lifetime: 2, cost: 782, additional_fqdn_cost: 257 } ] },
        { product_name_id: 'ssl_wildcard',
          product_name: 'WildCard',
          prices: 
           [ { lifetime: 1, cost: 688, additional_wildcard_cost: 658 },
             { lifetime: 2, cost: 1307, additional_wildcard_cost: 1250 } ] },
        { product_name_id: 'ssl_ev_plus',
          product_name: 'EV SSL',
          prices: [ { lifetime: 1, cost: 344 }, { lifetime: 2, cost: 654 } ] },
        { product_name_id: 'ssl_ev_multi_domain',
          product_name: 'EV Multi-Domain',
          prices: 
           [ { lifetime: 1, cost: 574, additional_fqdn_cost: 168 },
             { lifetime: 2, cost: 1090, additional_fqdn_cost: 319 } ] } ] },
  json: true };

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
204 No Content
// empty

Ein leeres products-Array deaktiviert alle Produkte für das Unterkonto.

Antragsparameter

Name Antr./Opt. Typ Beschreibung
products erforderlich array Liste der für das Unterkonto zu aktivierenden Produkte
.. product_name_id optional string Namens-ID des für das Unterkonto zu aktivierenden Produkts
Siehe Glossar – Produkt-IDs
.. prices optional array Liste der für das angegebene Produkt festzusetzenden Preise
Hinweis: Falls nichts angegeben wird, erhält das angegebene Produkt die Standardpreise des übergeordneten Kontos.
.. .. lifetime erforderlich int Dauer in Jahren, die die Preisgestaltung gilt.
.. .. cost erforderlich int
float
Geben Sie den Basispreis des Produkts an.
Max.: 99999999.99
.. .. additional_fqdn_cost erforderlich* int
float
Geben Sie die Kosten für jeden zusätzlichen Domänennamen (SAN) an, der zum Auftrag hinzugefügt wird.
*Nur erforderlich für Produkte, die diesen Parameter unterstützen. Siehe produktspezifischer Parametersupport.
Max.: 99999999.99
.. .. additional_wildcard_cost erforderlich* int
float
Geben Sie die Kosten für jede zusätzliche Wildcard-Domäne an (z. B. * .example.com), die zum Auftrag hinzugefügt wird.
*Nur erforderlich für Produkte, die diesen Parameter unterstützen. Siehe produktspezifischer Parametersupport.
Max.: 99999999.99

Produktspezifischer Parametersupport

Falls ein Produkt zusätzliche Kostenparameter nicht unterstützen (additional_fqdn_cost oder additional_wildcard_cost), wird jeder für das Produkt angegebene Wert ignoriert.

Produktnamen-ID Unterstützt additional_fqdn_cost? Unterstützt additional_wildcard_cost?
ssl_cloud_wildcard Ja
ssl_plus
ssl_multi_domain Ja
ssl_wildcard Ja
ssl_ev_plus
ssl_ev_multi_domain Ja
private_ssl_multi_domain Ja
private_ssl_plus
private_ssl_wildcard Ja
client_digital_signature_plus
client_digital_signature_plus_ad
client_digital_signature_plus_sha2
client_email_security_plus
client_email_security_plus_ad
client_email_security_plus_sha2
client_authentication_plus
client_authentication_plus_ad
client_premium
client_premium_ad
client_premium_sha2
client_ltans_adobe_signing
client_timestamp_authority
private_client_premium
client_authentication_only
client_grid_premium
client_grid_robot_email
client_grid_robot_fqdn
client_grid_robot_name
grid_host_ssl
client_multi_name
grid_host_ssl_multi_domain Ja
code_signing
code_signing_ev
document_signing_org_1
document_signing_org_2
document_signing_individual_1
document_signing_individual_2
client_authentication_only_non_repudiation
class1_smime
ssl_dv_geotrust Ja
ssl_dv_rapidssl
ssl_ev_geotrust_truebizid Ja
ssl_ev_thawte_webserver Ja
ssl_geotrust_truebizid Ja Ja
client_premium_data_encipherment
client_premium_non_repudiation
ssl_thawte_webserver Ja Ja
wildcard_dv_geotrust Ja
wildcard_dv_rapidssl
cloud_dv_geotrust Ja
ssl_ev_securesite
ssl_ev_securesite_multi_domain Ja
ssl_ev_securesite_pro Ja
ssl_securesite
ssl_securesite_multi_domain Ja
ssl_securesite_pro Ja Ja
ssl_securesite_wildcard Ja