このエンドポイントを使用して、インスタントレポートを予約するか、on_demand
レポートを生成します。
このエンドポイントが正常に応答するには、レポートライブラリ機能がお使いのアカウントで有効になっている必要があります。
curl -X POST \
'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/run' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = ""
payload="curl -X POST \\\r\n 'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/run' \\\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 POST \`+"
"+`
'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/run' \`+"
"+`
-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 POST \\\r\n \'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}/run\' \\\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_identifier": "88de5e19-ec57-4d70-865d-df953b062574",
"message": "Successfully triggered report creation"
}
名前 | 要求/オプション | タイプ | 説明 |
---|---|---|---|
report-identifier | 必須 | string | [レポート API を作成する] の応答に表示されるレポート ID。 |