Elenca colonne supportate

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

Usa questo endpoint per elencare le colonne supportate per un tipo di report. Per ottenere report_type, usa l’endpoint Elenca tipo di report.

La funzione Libreria report deve essere abilitata nel tuo account affinché questo endpoint risponda correttamente.

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."
}

Parametri richiesta

Parametri di risposta

Per un elenco di tutti i parametri di risposta per questa API, consulta l’argomento Colonne supportate della libreria report Digicert.

Nome Tipo Descrizione
categories object Contenitore.
.. name string Nome del report.
.. columns object Contenitore.
.. .. identifier string L’identificatore colonna supportati dalle API Libreria report. Per un elenco di tutte le colonne supportate, consulta Colonne API libreria report.
.. .. display_name string Il nome visualizzato specificato per il report.
.. .. field_type string Il tipo di campo dati: STRING.