更新时间:2021-10-15 GMT+08:00
获取云手机列表
参考《云手机API参考》的“查询云手机列表”章节获取云手机列表。
接口示例
GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones?phone_name={phone_name}&server_id={server_id}&status={status}&offset={offset}&limit={limit}&type={type} Header: Content-Type: application/json X-Auth-Token: $token
其中,
- CPH Endpoint为Endpoint列表中CPH对应区域的终端节点,如华北-北京四为cph.cn-north-4.myhuaweicloud.com。
- project_id为云手游服务器所属区域对应的项目ID,如083e9f825e80f50c2f96c0045edc70e8。可通过如下方式获取:
- 登录管理控制台。
- 单击右上角用户名下的“我的凭证”。
- 在“API凭证”页面的项目列表中获取项目ID。图1 获取项目ID
- URL中"?"之后的部分为可选参数。
- $token为获取token接口的响应结果。
接口使用示例
GET https://cph.cn-north-4.myhuaweicloud.com/v1/083e9f825e80f50c2f96c0045edc70e8/cloud-phone/phones Header: Content-Type: application/json X-Auth-Token: $token

$token需要换成实际获取到的token值;此处未指定phone_name、server_id等参数信息。
父主题: 云手机应用部署
