Usa questo endpoint per elencare tutte le richieste.
Cambia l’intestazione ACCEPT
con text/csv
per avere un output CSV dei risultati.
curl -X GET \
https://www.digicert.com/services/v2/request \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/request"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/request"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'GET',
url: 'https://www.digicert.com/services/v2/request',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"requests": [
{
"id": 198,
"date": "2018-10-16T20:05:28+00:00",
"type": "new_request",
"status": "pending",
"requester": {
"id": 14,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com"
},
"order": {
"id": 12345678,
"certificate": {
"common_name": "example.com"
},
"organization": {
"id": 112233,
"name": "Epigyne Unwieldiness llc"
},
"container": {
"id": 5,
"name": "History Department"
},
"product": {
"name_id": "ssl_plus",
"name": "Standard SSL",
"type": "ssl_certificate"
}
}
},
...
],
"page": {
"total": 14,
"limit": 0,
"offset": 0
}
}
Nome | Rich/Opz | Tipo | Descrizione |
---|---|---|---|
offset | facoltativo | int |
Avvia elenco nel numero specificato per la paginazione. Predefinita: 0
|
limit | facoltativo | int |
Tronca elenco nel numero specificato per la paginazione. Max: 1000 (impostazione predefinita)
|
Nome | Tipo | Descrizione |
---|---|---|
requests | array | Elenco delle richieste. |
.. id | int | ID richiesta |
.. date | string |
Indicazione di data e ora di quando è stata inviata la richiesta. Formato: Fuso orario UTC e data ISO 8601 |
.. type | string |
Tipo di richiesta. Valori possibili: new_request , revoke , duplicate , reissue
|
.. status | string |
Stato della richiesta. Valori possibili: submitted , pending , approved , rejected
|
.. richiedente | object | Dettagli sull’utente che ha inviato la richiesta. |
.. order | object | Dettagli sull’ordine associato alla richiesta. |
.. .. id | int | ID ordine. |
.. .. certificate | object | Dettagli certificato. |
.. .. .. common_name | string | Nome protetto dal certificato. |
.. .. organization | object | Dettagli sull’organizzazione associata all’ordine. |
.. .. .. id | int | ID organizzazione. |
.. .. .. name | string | Ragione sociale dell’organizzazione. |
.. .. container | object | Dettagli sul contenitore associato all’ordine. |
.. .. .. id | int | ID contenitore. |
.. .. .. name | string | Nome del contenitore. |
.. .. product | object | Dettagli sul prodotto ordinato. |
.. .. .. name_id | string |
ID nome del prodotto. Consulta Glossario — Identificatori di prodotto |
.. .. .. name | string |
Nome di visualizzazione del prodotto. Consulta Glossario — Identificatori di prodotto |
.. .. .. type | string |
Tipo di prodotto. Consulta Glossario — Tipi di Prodotto |
pagina | object |
Dettagli sui risultati. Modificati con le stringhe di query URL. |