接口说明
调用 licenseQuery 接口查询LicenseKey。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /paasopenapi/api/cmparmsadmin/clicense/query HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
regionCode | String | Query | 是 | bbd132b51e92ac1100 | 资源池编码 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
code | Integer | 0 | 响应状态码。0:成功,-1:失败 |
msg | String | "" | 响应描述 |
data | Object | 查询到的LicenseKey |
data的数据结构如下:
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
LicenseDetailDTO | Object | LicenseKey |
LicenseDetailDTO的数据结构如下:
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
expTime | String | 2024-04-07 17:15:35 | 有效期 |
license | String | m75LLIf4@40786yYj | License值 |
regionCode | String | bbd132b51e942ac1100 | 资源池编码 |
regionId | String | d8bbd132b53a11e9b0e | 资源池ID |
tenantCode | String | Tenant | 租户编码 |
tenantId | String | 411 | 租户ID |
示例
请求示例
GET /paasopenapi/api/cmparmsadmin/clicense/query?regionCode=bbd132b51e942ac1100 HTTP/1.1
Content-Type:application/json
正常返回示例
HTTP/1.1 200 OK
{
"code":0,
"data":{
"agentUsage":0,
"agentUsageUpdateTime":"2019-08-24T14:15:22Z",
"billMode":0,
"expTime":"2019-08-24T14:15:22Z",
"license":"m75LLIf4@40786yYj",
"licenseCurQuotaNum":0,
"licenseEnable":0,
"licenseOprType":"",
"licenseQuotaNum":0,
"licenseType":"",
"operOrderSrc":0,
"parProInstId":"",
"quotaNum":0,
"regionCode":"bbd132b51e942ac1100",
"regionId":"d8bbd132b53a11e9b0e",
"spuInstId":"",
"tenantCode":"Tenant",
"tenantId":"411"
},
"msg":""
}
错误码
Http状态码 | 错误码 | 错误码描述 |
---|---|---|
400 | MissingParameter | 缺少必要的请求参数。 |
409 | LicenseKeyDuplication | LicenseKey存在冲突。 |
500 | FailedOperation | 操作失败。 |