Usa questo endpoint per ottenere informazioni su un subaccount.
curl -X GET \
'https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/account/subaccount/{{subaccount_id}}"
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/{{subaccount_id}}"
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/{{subaccount_id}}',
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);
});
{
"account_id": 1122339,
"account_type": "reseller",
"organization_name": "Real Organization",
"date_created": "2018-11-29 18:25:04",
"parent_account_id": "1122331",
"billing_account_name": "Billing Account, Inc.",
"billing_account_id": 1122328,
"account_manager": "Jim James",
"bill_parent": false,
"master_user": {
"first_name": "Alan",
"last_name": "Allen",
"email": "alan.allen@example.com",
"job_title": "subreseller",
"telephone": "801-701-9600",
"i18n_language_id": "1",
"container_id": "11223"
},
"organization": {
"id": 121212,
"status": "active",
"name": "Real Organization",
"address": "123 Fake Street",
"zip": "84043",
"city": "Lehi",
"state": "ut",
"country": "us",
"telephone": "801-701-9600",
"is_active": true,
"container": {
"id": 11223,
"parent_id": 0,
"name": "Real Organization",
"is_active": true
}
},
"billing_contact": {
"name": "Alan Allen",
"address": "123 Fake Street",
"city": "Lehi",
"state": "ut",
"zip": "84043",
"country": "us",
"email": "alan.allen@example.com",
"phone": "801-701-9600"
}
}
Nome | Tipo | Descrizione |
---|---|---|
account_id | int | ID subaccount. |
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
|
parent_account_id | string | ID account dell’elemento principale del subaccount. |
billing_account_name | string | Nome dell’account principale usato per la fatturazione. |
billing_account_id | int | ID account dell’account principale usato per la fatturazione. |
account_manager | string | Nome del rappresentante account del subaccount. |
bill_parent | bool | Specifica se all’account principale vengono fatturati gli ordini di certificato. |
master_user | object | Dettagli sull’amministratore del subaccount. |
.. first_name | string | Nome dell’amministratore del subaccount. |
.. last_name | string | Cognome dell’amministratore del subaccount. |
string | Indirizzo e-mail dell’amministratore del subaccount. | |
.. job_title | string | Qualifica dell’amministratore del subaccount. |
.. telephone | string | Numero di telefono dell’amministratore del subaccount. |
.. i18n_language_id | string | Lingua preferita per l’amministratore del subaccount. |
.. container_id | string | ID contenitore a cui è assegnato l’amministratore del subaccount. |
organization | object | Dettagli sull’organizzazione principale del subaccount. |
.. id | int | ID organizzazione. |
.. status | string |
Stato organizzazione. Valori possibili: active , inactive
|
.. name | string | Ragione sociale dell’organizzazione. |
.. address | string | Indirizzo dell’organizzazione. |
.. zip | string | Codice postale dell’organizzazione. |
.. city | string | Città in cui si trova l’organizzazione. |
.. state | string | Stato in cui si trova l’organizzazione. |
.. country | string | Paese in cui si trova l’organizzazione. |
.. telephone | string | Numero di telefono dell'organizzazione. |
.. is_active | bool | Stato attivo dell’organizzazione. |
.. container | object | Contenitore principale a cui è collegata l’organizzazione. |
.. .. id | int | ID contenitore. |
.. .. parent_id | int | ID dell’elemento principale del contenitore. |
.. .. name | string | Nome del contenitore. |
.. .. is_active | bool | Stato attivo del contenitore. |
billing_contact | object | Dettagli sul contatto di fatturazione del subaccount. |
.. name | string | |
.. address | string | |
.. city | string | |
.. state | stringa | |
.. zip | stringa | |
.. country | stringa | |
stringa | ||
.. phone | stringa |