같은 템플릿의 모든 보고서 삭제

DELETE
https://api.digicert.com/reports/v1/report/{{report_identifier}}

이 엔드포인트를 사용하여 특정 템플릿과 연결된 모든 보고서를 삭제합니다.

이 엔드포인트가 응답하려면 계정에 보고서 라이브러리 기능을 사용해야 합니다.

cURL
curl -X DELETE \
  'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}' \
  -H 'Content-Type: application/json' \
  -H 'X-DC-DEVKEY: {{api_key}}'
Python
import requests

url = ""

payload="curl -X DELETE \\\r\n  'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}' \\\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)
Go
package main

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

func main() {

  url := ""
  method := "GET"

  payload := strings.NewReader(`curl -X DELETE \`+"
"+`
  'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}' \`+"
"+`
  -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))
}
NodeJS
var request = require('request');
var options = {
  'method': 'GET',
  'url': '',
  'headers': {
    'Content-Type': 'text/plain'
  },
  body: 'curl -X DELETE \\\r\n  \'https://www.digicert.com/services/v2/report/preview/report/{{report_identifier}}\' \\\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);
});
200 OK
{
    "message": "Successfully marked report for deletion"
}

경로 매개 변수

이름 필수/옵션 유형 설명
report-identifier 필수 string 보고서 만들기 API의 응답에 표시하는 보고서 ID입니다.