POST
/ingest/v1/{tenantId}/alarm-sources/{code}设备上报report
路径参数
| 名称 | 类型 | 说明 |
|---|---|---|
| tenantId | integer | — |
| code | string | — |
请求体
结构: string必填
常见错误码
40001参数非法
40010缺少 X-Tenant-Id 请求头
40400资源不存在
40303超出授权路数
调用示例
POST /ingest/v1/{tenantId}/alarm-sources/{code}
curl -X POST 'https://your-host/ingest/v1/<tenantId>/alarm-sources/<code>' \
-H 'X-App-Key: AK_xxx' \
-H 'X-Timestamp: <毫秒时间戳>' \
-H 'X-Nonce: <随机串>' \
-H 'X-Signature: <Base64(HMAC-SHA256(待签串, appSecret))>'
-H 'Content-Type: application/json' \
-d '<按规范中的 string 结构传参>'示例中的签名口径与"签名规范"页一致;生产环境请把 appSecret 放在服务端,不要下发到浏览器或 App。