概念

请求标头

4个头头每通电话就走4个头头,其中3个描述机器 SDK 机器正在运行, 机器如何成为你的账户上的存储。

sent automatically
Using Python?

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

发送发送

标题标题值
授权授权Bearer & lt;jwt> - 会话, 绝不是密钥
- 十 - 十个IaGenify- 动排 SDK 版本版本版本
- 十 - 十个IaGenify- 甲酸甲酸主机名、平台、建筑和运行时间的散列
- 十 - 十个IaGenify-资源检测到 CPU记忆, GPU磁盘 - 检测到任何内容时忽略
内容类型应用/json除非尸体是表格Data

资源标题

最多每30秒就进行回覆, 并共享通话, 所以一连串请求不会探测磁盘一百次。 每个探测器都被包裹: 一个无法读取的字段被忽略, 而不是失败了呼叫, 当一无所有时, 信头就不会发送 。

为什么它被派来

机器就是靠它来运行 SDK 代理商在阅读或写机器文件时,也曾作过同样的工作记录。

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
这里没有任何能识别一个人的东西

机器id 是机器事实的散列。 它包含的不是任何您打的, 没有密钥, 没有账户识别符 。