查询用户的所有租赁信息
更新时间:2025-08-15 03:41:38
基本信息
Action
GetLeasingResources
Path
/iaas
Method
GET
请求参数
此接口除公共参数外,还包含以下参数。关于公共参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
console |
String |
否 |
private |
excluded_user |
String |
否 |
privateprivate |
reverse |
Integer |
否 |
private |
root_user |
String |
否 |
private |
status |
String |
否 |
private |
user |
String |
否 |
private |
返回数据
此接口除公共返回参数外,还包含以下返回参数。关于公共返回参数的更多信息,请参见前文内容。
| 参数名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
auto_renew |
Integer |
否 |
用户设置合同到期后的续费时长 |
charge_mode |
String |
否 |
计费模式 |
console_id |
String |
否 |
Console ID |
duration |
String |
否 |
合同周期 |
group_id |
String |
否 |
|
lease_time |
String |
否 |
租赁开始时间 |
price |
String |
否 |
合同价格 |
price_info |
String |
否 |
合同配置 |
renewal_time |
String |
否 |
租赁到期时间 |
resource_id |
String |
否 |
资源 ID |
root_user_id |
String |
否 |
主用户 ID |
status |
String |
否 |
租赁状态 |
status_time |
String |
否 |
租赁状态变更时间 |
unlease_time |
String |
否 |
解除租赁时间 |
user_id |
String |
否 |
用户 ID |
zone_id |
String |
否 |
区域 ID |
请求示例
{
"action": "GetLeasingResources",
"excluded_user": "",
"limit": 20,
"offset": 0,
"root_user": "",
"status": [],
"user": "usr-Kz8eMmMv",
"zone": "test"
}
返回示例
{
"action": "GetLeasingResourcesResponse",
"leasing_resource_set": [
{
"auto_renew": null,
"charge_mode": "elastic",
"console_id": "qingcloud",
"duration": 3600,
"group_id": "1",
"lease_time": "2021-10-25T12:51:22Z",
"price": "0",
"price_info": "{\"md\":{\"nd\":[{\"c\":1,\"g\":0,\"m\":1024,\"cnt\":1,\"stor\":4,\"repl\":1,\"sc\":100,\"hpvr\":\"kvm\",\"gcls\":0,\"cls\":101}]},\"stat\":\"active\",\"zone\":\"sh1b\",\"cid\":\"cl-co1k92ui\",\"avv\":null,\"aid\":\"app-qingcloud-appcenter-metadata\",\"pts\":[\"cluster\"]}",
"renewal": "auto",
"renewal_time": "2021-11-01T13:51:22Z",
"resource_id": "cl-co1k92ui",
"root_user_id": "usr-Kz8eMmMv",
"status": "active",
"status_time": "2021-10-25T12:52:29Z",
"unlease_time": null,
"user_id": "usr-Kz8eMmMv",
"zone_id": "sh1"
}
],
"total_count": 32
}