接口请求域名: trro.intl.tencentcloudapi.com 。
按授权查看license列表
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:GetLicenses。 |
| Version | 是 | String | 公共参数,本接口取值:2022-03-25。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| PageNum | 是 | Integer | 页码 |
| PageSize | 是 | Integer | 页面数量 |
| ProjectId | 否 | String | projectId |
| DeviceId | 否 | String | DeviceId |
| Status | 否 | Integer | license状态:0:未绑定;1:已绑定;2:已停服;3:已退费 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| Licenses | Array of License | license列表 |
| TotalCount | Integer | license列表项数量 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
查询用户购买的license列表以及设备绑定情况
POST / HTTP/1.1
Host: trro.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: GetLicenses
<公共请求参数>
{
"PageNum": 1,
"PageSize": 20
}
{
"Response": {
"Licenses": [
{
"Status": 0,
"Duration": "86400",
"ExpireTime": "1686362610",
"RemainDay": 82,
"Count": 2,
"LicenseIds": [
"trro-2e24a74a-67ea-1732-076d-75bf772529a",
"trro-2e24a74a-67ea-1732-073d-75bf772579a"
]
},
{
"Status": 0,
"Duration": "186400",
"ExpireTime": "1689386610",
"RemainDay": 117,
"LicenseIds": [
"trro-2e24a74a-67ea-1732-076d-75bf772529a",
"trro-2e24a74a-67ea-1732-073d-75bf772579a"
],
"Count": 2
}
],
"TotalCount": 3,
"RequestId": "33086049-513e-561c-8bce-484e18244613"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| InvalidParameterValue | 参数取值错误。 |
文档反馈