Obter uma chave de API
Conceitos

Cabeçalhos de requisição

Quattro intestae diviae in ogni chiamata. Tres di loro decrive la macchina il SDK sta in azionament, e idèo come una macchina diventa un storage in su conto.

sent automatically
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

Ce e enviat

En-testaValor
AutorizazionBearer <jwt> — la sessione, mai la chiave
X-IaGenify-Versione SDK versiòn
X-IaGenify-Id-machineun hash de hostname, plataforma, architecture e runtime
X-IaGenify-Ressourcesdetectat CPU, memoria, GPU, disco — omitido quando nulla era detectat
Tipo di contenutoaplicazion/json, a meno che il corpo non sia FormData

L'intestu di recursos

Recalculato a lo più ogni 30 secondi e condivisat tra le chiamali, percio una explosione di richieste non sonda il disco centeniu. Ogni sonda è envuelta: un campo che non si lee non se olde, e quando nulla si lee il captest non si envia.

Por qua é enviado a ním

È ciò che permette la macchina che esegue il SDK aparecere in tuo conto come un storage, con il suo disco e le proprie capacità, in loc di essere un telefonante anonimo. It's lo stesso record un agent opera contro quando lee o scrie files in quella macchina.

const machines = await api.storage.list();
// a computer appears with its hostname and the disk it reported

const pc = await api.storage.get();
pc.hostname;     // from the exchange
pc.machineId;    // the same value as the header
machines = api.storage.list()
# a computer appears with the machine id it reported

pc = api.storage.get()
pc.machine_id    # the same value as the X-IaGenify-Machine-Id header
Nada qui identifica una persona

L'identificat machine è un hash de factus machine. Contiene nulla digitat, ningun chiu, e ningun identificator de cont.