Usa questo endpoint per elencare tutti i subaccount.
curl -X GET \
https://www.digicert.com/services/v2/account/subaccount \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/subaccount"
payload = ""
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/account/subaccount"
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/account/subaccount',
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);
});
{
"subaccounts": [
{
"account_id": 112233,
"account_type": "reseller",
"organization_name": "Number one organization",
"date_created": "2018-11-29 01:48:04",
"account_manager": "Jim James"
},
{
"account_id": 112234,
"account_type": "enterprise",
"organization_name": "Number two organization",
"date_created": "2018-11-29 18:25:04",
"account_manager": "Jill Valentine"
},
{
"account_id": 112235,
"account_type": "retail",
"organization_name": "Number three organization",
"date_created": "2018-12-04 15:24:43",
"account_manager": "Rick Roll"
}
],
"page": {
"total": 3,
"limit": 1000,
"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 |
---|---|---|
child_accounts | array | Elenco di tutti i subaccount. |
.. account_id | int | ID account. |
.. account_type | string |
Definisce il tipo di subaccount. Consulta Glossario — Tipi di subaccount |
.. organization_name | string | Ragione sociale dell’organizzazione principale del subaccount. |
.. date_created | string |
Indicazione di data e ora di quando è stato creato il subaccount. Formato: yyyy-MM-dd HH:mm:ss
|
.. account_manager | string | Nome del rappresentante account del subaccount. |
pagina | object |
Dettagli sui risultati. Modificati con le stringhe di query URL. |