获取License生成所需参数
接口描述
用于获取License生成所需参数。
接口格式
|
请求方法 |
GET |
|
请求URL |
https://holosensstore.cn-north-4.myhuaweicloud.com/v1/holosens/consumptions/detail |
请求参数
请求头header
|
参数名称 |
是否必选 |
类型 |
参数说明 |
|---|---|---|---|
|
x-auth-token |
是 |
String |
已认证token |
响应参数
|
参数名称 |
是否必选 |
类型 |
参数说明 |
|---|---|---|---|
|
totalCount |
是 |
int |
总条数 |
|
licenseParamLists |
是 |
JSON[] |
需要生成License列表 |
licenseParamLists参数说明
|
参数名称 |
是否必选 |
类型 |
参数说明 |
|---|---|---|---|
|
appName |
是 |
String |
Appname, 请求License的app名称 |
|
requestAmount |
是 |
String |
请求License的数量 |
|
consumptionId |
是 |
String |
配额消耗id |
|
licenseType |
是 |
String |
License类型:
|
|
buyerID |
是 |
String |
买家ID |
|
appVersion |
是 |
String |
版本号 |
|
allocalTable |
是 |
String |
License分配表。格式为硬件ID=分配数量,支持多个,以英文分号;隔开。示例:硬件ID1=1;硬件ID2=1;硬件ID3=1 |
|
requestType |
是 |
String |
请求类型,是新申请new还是变更change(变更用于商用License售后场景,如设备损坏,License需要调整,暂不支持线上调整,预留接口) |
|
requestDays |
是 |
String |
过期天数。license类型为商用时,传入“30”或“365”或“unlimited”(分别表示:一个月/一年/永久);license类型为试用时,时间天数范围7-90(以实际设定的试用天数为准)。 |
|
requestContent |
是 |
String |
请求内容,固定写“SerialNumber”代表请求License |
|
itemId |
是 |
String |
商品id |
|
rpmName |
是 |
String |
算法包名称 |
响应参数示例
{
"totalCount": 1,
"licenseParamLists": [
{
"appName":"safetyhat",
"requestAmount":"1",
"consumptionId":"3dd47c39-d307-4afc-8cce-308440be4c1e",
"licenseType ":"trial",
"buyerID":"1",
"appVersion":"1.0.0",
"allocalTable":"023456780wertyuiopasQWERTYUIOPAQ=1",
"requestType":"new",
"requestDays":"7",
"requestContent":"SerialNumber",
"itemId":"1",
"rpmName":"safetyhat"
}
]
}