Verwenden Sie diesen Endpunkt, um einen Bericht in JSON-Format anzusehen..
Die Funktion „Berichtsbibliothek“ muss in Ihrem Konto aktiviert sein, damit dieser Endpunkt erfolgreich antworten kann.
curl -X GET \
'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/{{report-run-identifier}}/json' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "/reports/preview/report/{{report-identifier}}/{{report-run-identifier}}/json"
payload="curl -X GET \\\r\n 'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/{{report-run-identifier}}/json}' \\\r\n -H 'Content-Type: application/json' \\\r\n -H 'X-DC-DEVKEY: B35MZV2NEYT6KJM4WRXAL3TTKKFGGY6SXZOLSPZPLGYACGYQJFYNHRNHCKVT6PZULBLC4ECGGRV22KHEQ'"
headers = {
'Content-Type': 'text/plain'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "/reports/preview/report/%7B%7Breport-identifier%7D%7D/%7B%7Breport-run-identifier%7D%7D/json"
method := "GET"
payload := strings.NewReader(`curl -X GET \`+"
"+`
'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/{{report-run-identifier}}/json}' \`+"
"+`
-H 'Content-Type: application/json' \`+"
"+`
-H 'X-DC-DEVKEY: B35MZV2NEYT6KJM4WRXAL3TTKKFGGY6SXZOLSPZPLGYACGYQJFYNHRNHCKVT6PZULBLC4ECGGRV22KHEQ'`)
client := &http.Client {
}
req, err := http.NewRequest(method, url, payload)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Content-Type", "text/plain")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
var request = require('request');
var options = {
'method': 'GET',
'url': '/reports/preview/report/{{report-identifier}}/{{report-run-identifier}}/json',
'headers': {
'Content-Type': 'text/plain'
},
body: 'curl -X GET \\\r\n \'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/{{report-run-identifier}}/json}\' \\\r\n -H \'Content-Type: application/json\' \\\r\n -H \'X-DC-DEVKEY: B35MZV2NEYT6KJM4WRXAL3TTKKFGGY6SXZOLSPZPLGYACGYQJFYNHRNHCKVT6PZULBLC4ECGGRV22KHEQ\''
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
[
{
"Account ID": 9500650,
"Additional Emails": null,
"Alternative Order ID": null,
"Auto Renew": "No",
"Billing Address City": "SARATOGA SPRINGS",
"Billing Address Country": "us",
}
]
Name | Antr./Opt. | Typ | Beschreibung |
---|---|---|---|
report-identifier | erforderlich | string | Berichts-ID, die in der Antwort der Create Report API angezeigt wird. |
report-run-identifier | erforderlich | string | Die ID, die mit der Planung des Berichts verbunden ist. Suchen Sie den Report-run-identifier mit der Report History API. |
Name | Typ | Beschreibung |
---|---|---|
Account ID | string | Die Konto-ID. |
Additional Emails | string | Die mit dem Konto verknüpften E-Mails. |
Alternative Order ID | string | Die mit allen alternativen Aufträgen verknüpfte ID. |
Auto Renew | boolean | Ob das Konto für automatische Verlängerungen eingestellt ist. |
Billing Address City | string | Der Name der Stadt für die Rechnungsadresse des Kontos. |
Billing Address Country | string | Der Name des Landes für die Rechnungsadresse des Kontos. |