查询主机(vmSelect)
接口描述:
查询主机
请求参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
Outer_Ip | 否 | string | 外网IP |
VM_Name | 否 | string | 主机名 |
Offset | 否 | string | 偏移量 |
Limit | 否 | string | 数量 |
Order_By | 否 | string | 排序字段【OS_VERSION、NAME、Outer_Ip、Bandwidth、RI_END_TIME】 |
Order | 否 | string | 升降序【asc、desc】 |
响应参数:
参数名 | 说明 |
---|---|
VM_Id | 主机ID |
VM_Name | 主机名 |
Status | 主机状态 【Running(开机 )、Halted(关机)、Adding(创建中) 、Reinstalling(重装中)】 其他状态表示异常 |
ECU | CPU核数 |
Memory_Size | 内存大小,单位G |
System_Disk_Size | 系统盘大小,单位GB |
Data_Disk_Size | 数据盘大小,单位GB |
IP | 内网IP |
OS | 系统类型 |
Note | 备注 |
VM_Create_Time | 创建时间 |
VM_Create_User | 创建人 |
OS_Version | 镜像版本 |
Auto_Renew | 自动续费 |
Ri_Id | 套餐ID |
Count_Type | 套餐类型 |
Ri_Start_Time | 套餐开始时间 |
Ri_End_Time | 套餐结束时间 |
VM_Outer_Ip | 外网IP |
Group_Id | 带宽套餐ID |
Bandwidth | 带宽大小 |
Shbw_Id | 共享带宽ID |
Execute_Time | 自动删除时间 |
响应示例:
{ "code": 200, "msg": "success", "time": 1496805586, "data": { "count": "2", "list": [ { "VM_Id": "VM8084cd08784bd9f7f092e9", "Status": "Running", "VM_Name": "admin", "ECU": "1", "Memory_Size": "1", "System_Disk_Size": "60", "Data_Disk_Size": "", "IP": "192.168.230.123", "OS": "Windows", "Note": "", "VM_Create_Time": "2017-06-06 17:36:01", "VM_Create_User": "1000000020", "OS_Version": "_S_SYSTEM_WINDOWS_2012R2STANDARD_64", "Auto_Renew": "true", "Ri_Id": "RId8fc6cb4784bd9f7f5d345", "Count_Type": "month", "Ri_Start_Time": "2017-06-06 17:36:02", "Ri_End_Time": "2017-07-06 17:36:02", "VM_Outer_Ip": "", "Group_Id": "", "Bandwidth": "", "VM_Uuid": "9a33ec45-6ff9-49e2-8e93-bdedb9c8933d", "Shbw_Id": "", "Execute_Time": "" }, { "VM_Id": "VM7bf8c98a7800c90ea82341", "Status": "Running", "VM_Name": "qch123456789", "ECU": "1", "Memory_Size": "1024", "System_Disk_Size": "60", "Data_Disk_Size": "", "IP": "192.168.230.105", "OS": "Windows", "Note": "", "VM_Create_Time": "2017-06-05 18:40:25", "VM_Create_User": "1000000020", "OS_Version": "_S_SYSTEM_WINDOWS_2012R2STANDARD_64", "Auto_Renew": "true", "Ri_Id": "RI1ed2a64b7800c90eaa94cf", "Count_Type": "month", "Ri_Start_Time": "2017-06-05 18:40:26", "Ri_End_Time": "2017-07-05 18:40:26", "VM_Outer_Ip": "", "Group_Id": "", "Bandwidth": "", "VM_Uuid": "6fa626e8-fbba-41bb-a746-58fb798294c7", "Shbw_Id": "", "Execute_Time": "" } ] } }