使用此端点获取迁移的旧 SSL/TLS 证书订单的 DigiCert 证书订单编号。legacy_order_id
是您的 Symantec 或 GeoTrust* SSL/TLS 证书订单编号。
*如果您是合作伙伴,则您没有 GeoTrust SSL/TLS 证书订单的 Symantec 订单编号的访问权限。但是,您可以使用 GeoTrust 订单编号获取迁移的 GeoTrust 证书订单的 DigiCert 订单编号。
当您迁移活跃的公共 SSL/TLS 证书订单到新 CertCentral 帐户后,我们会为每个迁移的旧证书订单指定唯一的 DigiCert 订单编号。有关更多信息,请参阅有关域和证书迁移的须知事项。
curl -X GET \
'https://www.digicert.com/services/v2/oem-migration/{{legacy_order_id}}/order-id' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/oem-migration/{{legacy_order_id}}/order-id"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/oem-migration/{{legacy_order_id}}/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/oem-migration/{{legacy_order_id}}/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": 1234
}
名称 | 类型 | 描述 |
---|---|---|
id | string |
DigiCert 证书订单编号 DigiCert 证书订单编号 注意:如果使用 GeoTrust 证书订单编号,我们会返回最新的 DigiCert 证书订单编号。 |