更新时间:2022-11-18 GMT+08:00
分享

获取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类型:

  • trial
  • commercial

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"
        }
    ]
}
分享:

    相关文档

    相关产品