列出支持的列

GET
https://api.digicert.com/reports/v1/report/types/{{report_type}}/supported-columns

使用此端点列出报告类型支持的列。如需获取report_type,,则使用“列出报告类型”端点。

必须在帐户中启用报告库功能,该端点才能成功响应。

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

url = "https://www.digicert.com/services/v1/reports/preview/report/types/orders/columns"

payload={}
headers = {
  'Content-Type': 'application/json',
  'X-DC-DEVKEY': '{{api_key}}',
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
Go
package main

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

func main() {

  url := "https://www.digicert.com/services/v1/report/types/orders/columns"
  method := "GET"

  client := &http.Client {
  }
  req, err := http.NewRequest(method, url, nil)

  if err != nil {
    fmt.Println(err)
    return
  }
  req.Header.Add("Content-Type", "application/json")
  req.Header.Add("X-DC-DEVKEY", "{{api_key}}")

  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': 'https://www.digicert.com/services/v1/report/types/orders/columns',
  'headers': {
    'Content-Type': 'application/json',
    'X-DC-DEVKEY': '{{api_key}}',
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
200 OK
{
    "categories": [
        {
            "name": "Order details",
            "columns": [
            {
                    "identifier": "account_id",
                    "display_name": "Account ID",
                    "field_type": "STRING"
                },
                {
                    "identifier": "additional_emails",
                    "display_name": "Additional Emails",
                    "field_type": "STRING"
                },
                {
                    "identifier": "alternative_order_id",
                    "display_name": "Alternative Order ID",
                    "field_type": "STRING"
                },
                 {
                    "identifier": "validity_start_date",
                    "display_name": "Validity Start Date",
                    "field_type": "STRING"
                }
            ]
        }
    ]
}
401 Invalid user
{
"code": "user_authentication_error",
"message": "User is not authenticated."
}
403 Forbidden
{
    "code": "user_forbidden",
    "message": "User does not have the required permission."
}
403 Not enabled
{
    "code": "custom_reports_not_enabled",
    "message": "Custom reports is not enabled"
}
404 Not found
{
    "code": "report_type_not_found",
    "message": "Report_type not found."
}

请求参数

响应参数

有关该 API 的所有响应参数的列表,请参阅“Digicert 报告库支持的列”主题。

名称 类型 描述
categories object 容器。
.. name string 报告的名称。
.. columns object 容器。
.. .. identifier string 报告库 API 支持的列标识符。有关所有支持的列的列表,请参阅报告库 API 列
.. .. display_name string 为报告指定的显示名称。
.. .. field_type string 数据字段类型:STRING