获取license信息(API名称:getLicenseInfo)
功能介绍
获取license信息
该接口仅在GDE环境中使用。
相关接口
|
接口名称 |
调用说明 |
|---|---|
|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
|
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
|---|---|---|---|
|
POST |
https://isdp+域名/openapi/v1/license/getLicenseInfo |
OpenAPI |
application/json |
请求头
|
KEY |
VALUE |
是否必填 |
描述 |
|---|---|---|---|
|
Content-Type |
application/json |
是 |
无 |
|
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
bbomName |
String |
是 |
Bbom名(相当功能名) |
响应参数
|
字段名 |
数据类型 |
字段名称 |
|
gde-state |
String |
GDE状态
说明:
license正常均为COMPLETE |
|
gde-code |
String |
GDE状态码
说明:
license正常均为200 |
|
enabled |
boolean |
License是否可用 |
|
bbomList |
List<Object> |
功能列表 |
bbomList参数
|
字段名 |
数据类型 |
字段名称 |
|
bbomId |
int |
功能id |
|
type |
int |
类型
说明:
功能类型默认1 |
|
dfltVal |
int |
默认值 |
|
minVal |
int |
最小值 |
|
maxVal |
int |
最大值 |
|
name |
String |
名称 |
|
validDate |
String |
功能有效期
说明:
指功能可用期限,与license配置有关 |
请求示例
{
"bbomName": "Data analysis"
}
响应示例
{
"gde-state": "COMPLETE",
"gde-code": "200",
"enabled": true,
"bbomList": [
{
"bbomId": 3,
"type": 1,
"dfltVal": 0,
"minVal": 0,
"maxVal": 1,
"name": "Data analysis",
"validDate": "2024-12-06"
}
]
}