导入离线算法预授权
接口描述
导入离线设备的预授权数据,用于后续的离线授权操作。
请求说明
接口ID |
协议 |
方法 |
PATH |
50 |
HTTPS |
POST |
/openapi/v1/alg/consumes/pre_offline_grant |
PATH参数
无
URL参数
参数 |
类型 |
必填 |
说明 |
accesskey_id |
string |
是 |
参见签名认证 |
expires |
int |
是 |
参见签名认证 |
signature |
string |
是 |
参见签名认证 |
HTTP请求头
字段 |
值 |
Content-Type |
application/json |
请求参数
请求参数以Json格式放置于Body中,如下:
参数 |
类型 |
必填 |
说明 |
content |
string |
是 |
预授权数据内容(RSA加密的设备唯一信息) |
请求示例
POST https://open.vzicloud.com/openapi/v1/alg/consumes/pre_offline_grant?accesskey_id=8d9EsDAD2115Q5PM8tuP6g1IdAglkayp&expires=1619022787&signature=G29eTBjMm0gZF7cpXNLX7Hrn0yM%3D HTTP/1.1
Host: open.vzicloud.com
Content-Length: 512
Content-Type: application/json
{
"content": "encrypted_device_unique_info_base64_string..."
}
返回说明
返回参数
参数 |
类型 |
说明 |
id |
int |
预授权数据ID |
series_name |
string |
设备系列名称 |
devices |
array |
设备列表 |
+ sn |
string |
设备序列号 |
+ firmware_version |
string |
固件版本 |
注:返回参数里可能还包含其他信息但未在上面的表格内列出,请勿使用!
返回示例
{
"id": 2001,
"series_name": "IPC系列",
"devices": [
{
"sn": "abc123456789",
"firmware_version": "1.0.0"
},
{
"sn": "def123456789",
"firmware_version": "1.0.1"
},
{
"sn": "ghi123456789",
"firmware_version": "1.0.0"
}
]
}