更新时间:2024-01-31 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。可通过如下方式获取:
    1. 登录管理控制台。
    2. 单击右上角用户名下的“我的凭证”。
    3. 在“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值。

分享:

    相关文档

    相关产品