查询证书
更新时间:2025-08-15 03:41:38
基本信息
Action
DescribeLicenses
Path
/iaas
Method
GET
请求参数
此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
license_id |
String |
是 |
证书ID |
license_type |
String |
是 |
证书类型 |
product_id |
String |
是 |
产品 ID |
product_name |
String |
是 |
产品名称 |
reverse |
Integer |
是 |
查询结果是否反转 |
status |
String |
是 |
状态 |
sub_product_id |
String |
是 |
子产品 ID |
返回数据
此接口除公共返回参数外,还包含以下返回参数。关于公共返回参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
license_set |
Array |
否 |
|
total_count |
Integer |
否 |
license_set 参数说明如下。
| 参数名 | 类型 | 描述 |
|---|---|---|
create_time |
String |
否 |
custom_data |
String |
否 |
end_time |
String |
否 |
hypernode_count |
Integer |
否 |
license_id |
String |
否 |
license_type |
String |
否 |
product_id |
String |
否 |
product_name |
String |
否 |
start_time |
String |
否 |
status |
String |
否 |
status_time |
String |
否 |
sub_product_id |
String |
否 |
version |
String |
否 |
zone |
String |
否 |
请求示例
{
"license_code": "app-123123",
"license_type": "app",
"limit": 1,
"offset": 1,
"product_id": "product-xx",
"product_name": "product-name",
"reverse": 1,
"status": "activate",
"sub_product_id": "sub-product-xxx",
"zone": "pek"
}
返回示例
{
"action": "DescribeLicensesResponse",
"license_set": [
{
"create_time": "2023-07-05T08:35:51Z",
"custom_data": null,
"end_time": "2023-10-04T08:35:51Z",
"hypernode_count": 20,
"license_id": "lc-6Xhrf3KW",
"license_type": null,
"product_id": null,
"product_name": null,
"start_time": "2023-07-05T08:35:51Z",
"status": "enabled",
"status_time": "2023-07-05T08:35:51Z",
"sub_product_id": null,
"version": null,
"zone": null
}
],
"ret_code": 0,
"total_count": 1
}