跳到主要内容

查询分组下的云手机

描述

查询分组下的手机列表。

请求参数

参数名参数类型是否必填参数说明
RegionString机房标识,取值参见地域列表
CloudPhoneGroupIdsArray分组ID,字符串数组

返回参数

名称类型说明
IdString分组ID
GroupNameString分组名称
IsDefaultInteger是否默认分组 1是 0否
CreateTimeInteger创建时间戳
UpdateTimeInteger更新时间戳
CloudPhonesCloudPhones由CloudPhones组成的数组格式,返回云手机列表信息

CloudPhones

云手机列表的数据类型

名称类型说明
IdString云手机ID
NameString云手机名称
RegionString数据中心标识
PayTypeString付费类型 ONDEMAND:按量付费;PREPAID:包年包月
TaskStatusString任务状态 NONE:无任务;CREATING:创建中;REBOOTING:重启中;STOPING:关机中;STATING:开机中
IsEnableInteger启用状态 0禁用 1启用
CloudPhoneNetworkIdString专属网络ID
NetworkTypeString网络类型 COMMON:公共网络;PRIVATE:专属网络
EipString专属网络类型的IP地址
IntranetIpString云手机内网IP
StatusString运行状态 START:运行中;STOP:已关闭;ERROR:异常;CREATING:创建中;STARTING:开机中;STOPING:关机中;PAUSING:暂停中;PAUSED:已暂停;UNPAUSING:取消暂停;REBOOTING:重启中;RESIZE:变更中;MIGRATE:迁移中;DELETED:已删除;DELETING:删除中;DELETE_ERROR:异常;REBUILDING:重装中;RESIZING:配置变更中;SUSPENDED:挂起;ROLLING_BACK:快照还原中;CHANGE_INTERFACE_ING:变更私网中;CHANGE_NETWORK_IP_ING:变更私网IP中;MIGRATING:迁移中;CREATE_ERROR:创建失败;CHANGE_PORT_BANDWIDTH_ING:变更网卡出入口带宽中;CHANG_CLOUD_PHONE_NETWORK_ING:切换网络中;REMOVE_FROM_CLOUD_PHONE_NETWORK_ING:从云手机网络中移除中;CHANGE_PORT_BANDWIDTH:变更网卡出入口带宽;CHANG_CLOUD_PHONE_NETWORK:切换网络;REMOVE_FROM_CLOUD_PHONE_NETWORK:从云手机网络中移除;CHANGE_PORT_BANDWIDTH_ERROR:变更网卡出入口带宽错误;CHANG_CLOUD_PHONE_NETWORK_ERROR:切换网络错误;REMOVE_FROM_CLOUD_PHONE_NETWORK_ERROR:从云手机网络中移除错误;JOIN_TO_CLOUD_PHONE_NETWORK:加入云手机网络;JOIN_TO_CLOUD_PHONE_NETWORK_ING:加入云手机网络中;JOIN_TO_CLOUD_PHONE_NETWORK_ERROR:加入云手机网络错误
ProductStatusString产品状态 NORMAL:正常;OVERTIMER:过期;ARREARAGE:欠费
ProductModelIdString产品型号ID
ProductModelNameString产品型号名称
DisplaySizeString分辨率
ProductTypeString产品类型
GroupIdString分组ID
GroupNameString分组名称
LastStartTimeInteger最近一次启动时间戳
ShutdownTimeInteger停机时间戳
DueTimeInteger到期时间戳
CloseTimeInteger关闭时间戳
CreateTimeInteger创建时间戳
UpdateTimeInteger更新时间戳

请求示例

post https://api.chinac.com/v2/?Action=ListGroupWithCloudPhone&其他公共参数

返回示例

{
"code": 10000,
"message": "",
"data": [{
"Id": "cpg-9911aj5qjsd834",
"GroupName": "默认分组",
"IsDefault": 1,
"CreateTime": 1561548529828,
"UpdateTime": 1561548529832,
"CloudPhones": [{
"Id": "cp-g711ak3lj5j15f",
"Name": "A2004210004",
"Region": "cn-cloudPhone",
"PayType": "PREPAID",
"TaskStatus": "NONE",
"IsEnable": 1,
"NetworkType": "COMMON",
"Eip": "40.40.4.251",
"IntranetIp": "10.20.11.113",
"Status": "START",
"ProductStatus": "NORMAL",
"ProductModelId": 805013,
"ProductModelName": "压测型",
"DisplaySize": "720*1280",
"GroupId": "cpg-9911aj5qjsd834",
"GroupName": "默认分组",
"LastStartTime": 1587467157000,
"DueTime": 1592737555000,
"CloseTime": 1592737555000,
"CreateTime": 1587467155000,
"UpdateTime": 1587968747000
}]
}, {
"Id": "cpg-vh11aj62fxl5m",
"GroupName": "分组数据推送",
"IsDefault": 0,
"CreateTime": 1562052801058,
"UpdateTime": 1562052801058,
"CloudPhones": [{
"Id": "cp-g711ak3lj5j15f",
"Name": "A2004210004",
"Region": "cn-cloudPhone",
"PayType": "PREPAID",
"TaskStatus": "NONE",
"IsEnable": 1,
"NetworkType": "COMMON",
"Eip": "40.40.4.251",
"IntranetIp": "10.20.11.113",
"Status": "START",
"ProductStatus": "NORMAL",
"ProductModelId": 805013,
"ProductModelName": "压测型",
"DisplaySize": "720*1280",
"GroupId": "cpg-vh11aj62fxl5m",
"GroupName": "分组数据推送",
"LastStartTime": 1587467157000,
"DueTime": 1592737555000,
"CloseTime": 1592737555000,
"CreateTime": 1587467155000,
"UpdateTime": 1587968747000
}]
}]
}