Appelez ce point de terminaison pour répertorier les noms de tous les rapports disponibles.
La fonction de bibliothèque de rapports doit être activée sur votre compte pour obtenir une réponse de ce point de terminaison.
curl -X GET \
'https://www.digicert.com/services/v2/report/preview/report/names' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = ""
payload="curl -X GET \\\r\n 'https://www.digicert.com/services/v2/report/preview/report/names' \\\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 := ""
method := "GET"
payload := strings.NewReader(`curl -X GET \`+"
"+`
'https://www.digicert.com/services/v2/report/preview/report/names' \`+"
"+`
-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': '',
'headers': {
'Content-Type': 'text/plain'
},
body: 'curl -X GET \\\r\n \'https://www.digicert.com/services/v2/report/preview/report/names\' \\\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);
});
{
"report_names": [
"Report_ondemand",
“Report_monthly",
“Report_weekly"
]
}
Nom | Obligatoire/facultatif | Type | Description |
---|---|---|---|
report_display_name | Facultatif | string | Nom d'affichage spécifié du rapport. |
Nom | Type | Description |
---|---|---|
report_names | object | Répertorier les noms d'affichages des rapports créés. |