{"base_path":null,"components":null,"consumes":"","definitions":{"Address":{"description":"服务器开发端口信息。","properties":{"access_ip":{"description":"云手机服务器的公网IP,过期字段。","maxLength":1024,"minLength":0,"type":"string"},"intranet_ip":{"description":"云手机服务器的内网IP,过期字段。","maxLength":1024,"minLength":0,"type":"string"},"public_ip":{"description":"云手机服务器的公网IP,新增字段。","maxLength":1024,"minLength":0,"type":"string"},"server_ip":{"description":"云手机服务器的内网IP,新增字段。","maxLength":1024,"minLength":0,"type":"string"}},"type":"object"},"ListCloudPhoneServersResponseBody":{"description":"查询云手机服务器列表响应体。","properties":{"count":{"description":"实例总数。","format":"int32","maximum":100000,"minimum":0,"type":"integer"},"request_id":{"description":"请求的唯一标识ID。","maxLength":32,"minLength":32,"type":"string"},"servers":{"description":"云手机服务器信息。","items":{"$ref":"#/definitions/Server"},"maxItems":8096,"minItems":0,"type":"array"}},"type":"object"},"Server":{"description":"云手机信息。","properties":{"addresses":{"description":"云手机服务器的IP相关信息。","items":{"$ref":"#/definitions/Address"},"maxItems":8096,"minItems":0,"type":"array"},"availability_zone":{"description":"云手机服务器所在的可用区。","maxLength":1024,"minLength":0,"type":"string"},"cidr":{"description":"云手机服务器所属虚拟私有云(简称VPC)的网段。网络版本 network_version 取值为“v1”时,表示云手机服务器所属资源租户的VPC CIDR;取值为“v2”时,表示租户创建服务器时指定 VPC 的 VPC CIDR。","maxLength":1024,"minLength":0,"type":"string"},"create_time":{"description":"创建时间,\n时间格式为UTC,YYYY-MM-DDTHH:MM:SSZ。","maxLength":1024,"minLength":0,"type":"string"},"enterprise_project_id":{"description":"云手机服务器所属企业项目ID。","example":"0","maxLength":36,"minLength":0,"type":"string"},"keypair_name":{"description":"连接云手机所使用的密钥对的名称,不超过64个字节。","maxLength":64,"minLength":0,"type":"string"},"metadata":{"description":"订单以及产品相关信息。","properties":{"order_id":{"description":"产品ID,不超过64个字节。","maxLength":64,"minLength":0,"type":"string"},"product_id":{"description":"订单ID,不超过64个字节。","maxLength":64,"minLength":0,"type":"string"}}},"network_version":{"description":"是否为自定义网络的云手机服务器标识。\"v1\",非自定义网络的云手机服务器。 \"v2\",自定义网络的云手机服务器。支持按照网络版本字段进行筛选。","maxLength":64,"minLength":0,"type":"string"},"phone_model_name":{"description":"云手机规格名称,不超过64个字节。","maxLength":64,"minLength":0,"type":"string"},"resource_project_id":{"description":"云手机服务器的项目ID。","maxLength":32,"minLength":32,"type":"string"},"server_id":{"description":"云手机服务器的唯一标识,不超过32个字节。","maxLength":32,"minLength":32,"type":"string"},"server_model_name":{"description":"云手机服务器规格名称,不超过64个字节。","maxLength":64,"minLength":0,"type":"string"},"server_name":{"description":"云手机服务器名称,不超过65字符,只支持英文字母、数字、汉字、下划线和中划线。","maxLength":65,"minLength":0,"type":"string"},"status":{"description":"服务器状态。\n- 0、1、3、4:创建中\n- 2:异常\n- 5:正常\n- 8:冻结\n- 10:关机\n- 11:关机中\n- 12:关机失败\n- 13:开机中","format":"int32","maximum":128,"minimum":-128,"type":"integer"},"subnet_cidr":{"description":"云手机服务器所属子网网段。网络版本 network_version 取值为“v2”时,表示租户创建服务器时指定子网的 CIDR; 取值为“v1”时,表示云手机服务器所属资源租户的子网CIDR。","maxLength":1024,"minLength":0,"type":"string"},"subnet_id":{"description":"云手机服务器所属子网的ID。仅在网络版本 network_version 取值为“v2”时,该取值表示租户创建服务器时指定子网的 ID,网络版本取值为“v1”时,该字段表示云手机服务器所属资源租户的子网ID。","maxLength":1024,"minLength":0,"type":"string"},"update_time":{"description":"更新时间,\n时间格式为UTC,YYYY-MM-DDTHH:MM:SSZ。","maxLength":1024,"minLength":0,"type":"string"},"vpc_cidr":{"description":"云手机服务器所属虚拟私有云(简称VPC 网络版本 network_version 取值为“v1”时,表示云手机服务器所属资源租户的VPC CIDR;取值为“v2”时,表示租户创建服务器时指定 VPC 的 VPC CIDR","maxLength":1024,"minLength":0,"type":"string"},"vpc_id":{"description":"云手机服务器所属虚拟私有云(简称VPC)的ID。 网络版本network_version取值为“v1”时,表示云手机服务器所属资源租户的VPC ID;取值为“v2”时,表示租户创建服务器时指定VPC的 VPC ID。","maxLength":1024,"minLength":0,"type":"string"}},"type":"object"}},"description":null,"group_id":"309fd78cfbaf4fc7b0138ba244051bf6","host":"cph.cn-north-4.myhuaweicloud.com","id":"e1453ecd06de4c258f8c19f751a63d0c","info_version":"v1","method":"get","name":"ListCloudPhoneServers","parameters":{"X-Auth-Token":{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":8096,"minLength":0,"name":"X-Auth-Token","required":true,"type":"string"},"create_since":{"description":"查询的起始时间戳。","format":"int64","in":"query","maximum":20000000000000,"minimum":0,"name":"create_since","required":false,"type":"integer"},"create_until":{"description":"查询的结束时间戳。","format":"int64","in":"query","maximum":20000000000000,"minimum":0,"name":"create_until","required":false,"type":"integer"},"limit":{"description":"每页返回的资源个数。取值范围:1~100(默认值为100),一般设置为10、20、50。","in":"query","maximum":8096,"minimum":0,"name":"limit","required":false,"type":"integer"},"network_version":{"description":"云手机服务器是否为自定义网络标识。\n- v1:系统定义网络的云手机服务器\n- v2:自定义网络的云手机服务器","in":"query","maxLength":1024,"minLength":0,"name":"network_version","required":false,"type":"string"},"offset":{"description":"偏移量为一个大于等于0整数,表示查询该偏移量后面的所有的资源数,默认值为0。","in":"query","maximum":8096,"minimum":0,"name":"offset","required":false,"type":"integer"},"phone_model_name":{"description":"手机规格名称。","in":"query","maxLength":1024,"minLength":0,"name":"phone_model_name","required":false,"type":"string"},"project_id":{"description":"项目id。","in":"path","maxLength":32,"minLength":32,"name":"project_id","required":true,"type":"string"},"query_server_id":{"description":"云手机服务器的唯一标识。","in":"query","maxLength":32,"minLength":32,"name":"server_id","required":false,"type":"string"},"server_name":{"description":"云手机服务器名称,支持模糊查询。","in":"query","maxLength":64,"minLength":0,"name":"server_name","required":false,"type":"string"},"server_status":{"description":"服务器状态。\n- 0、1、3、4:创建中\n- 2:异常\n- 5:正常\n- 8:冻结\n- 10:关机\n- 11:关机中\n- 12:关机失败\n- 13:开机中","format":"int32","in":"query","maximum":128,"minimum":0,"name":"status","required":false,"type":"integer"}},"paths":{"/v1/{project_id}/cloud-phone/servers":{"get":{"description":"分页查询云手机服务器,云手机服务器列表按照创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在云手机服务器,则返回空列表。","operationId":"ListCloudPhoneServers","parameters":[{"$ref":"#/parameters/project_id"},{"$ref":"#/parameters/X-Auth-Token"},{"$ref":"#/parameters/offset"},{"$ref":"#/parameters/limit"},{"$ref":"#/parameters/server_name"},{"$ref":"#/parameters/query_server_id"},{"$ref":"#/parameters/network_version"},{"$ref":"#/parameters/phone_model_name"},{"$ref":"#/parameters/create_since"},{"$ref":"#/parameters/create_until"},{"$ref":"#/parameters/server_status"}],"responses":{"200":{"description":"OK","examples":{"application/json":{"count":2,"request_id":"4336f6c61d2048c6b58b4368d9d95ecd","servers":[{"addresses":[{"access_ip":"10.246.175.190","intranet_ip":"192.168.0.62","public_ip":"10.246.175.190","server_ip":"192.168.0.62"},{"access_ip":"10.246.171.245","intranet_ip":"192.168.0.169","public_ip":"10.246.171.245","server_ip":"192.168.0.169"}],"availability_zone":"br-iaas-odin1a","cidr":"192.168.0.0/16","create_time":"2021-11-11T08:33:40Z","keypair_name":"keypair01","metadata":{"order_id":"CS21111116336E8RX","product_id":"00301-221014-0--0"},"network_version":"v2","phone_model_name":"rx1.cp.c105.d6.e5v5","resource_project_id":"06a5b529fa80d28b2f53c014024bed44","server_id":"4aff349ab539452a85ac5d7442b39377","server_model_name":"physical.rx1.xlarge","server_name":"cph-edgr-1","status":2,"subnet_cidr":"192.168.0.0/24","subnet_id":"c7f9983d-03ca-4a2e-a0e1-d6bd97174669","update_time":"2021-11-11T09:28:30Z","vpc_cidr":"192.168.0.0/16","vpc_id":"9a11e291-967f-4dd6-99bd-9be54f10583c"},{"addresses":[{"access_ip":"88.88.48.151","intranet_ip":"172.31.185.82","public_ip":"88.88.48.151","server_ip":"172.31.185.82"}],"availability_zone":"br-iaas-odin1a","cidr":"172.31.0.0/16","create_time":"2021-08-30T07:17:40Z","keypair_name":"KeyPair-2","metadata":{"order_id":"CS21083015171L1CA","product_id":"OFFI635412973496623104"},"network_version":"v1","phone_model_name":"kg1m.cg.c60.d20SSD.e1v1","resource_project_id":"06a5b529fa80d28b2f53c014024bed44","server_id":"6d74b672216d40f39377a99e7f95aa95","server_model_name":"physical.kg1m.4xlarge.cg","server_name":"cph-igfp-2","status":2,"subnet_cidr":"172.31.0.0/16","subnet_id":"92cf2447-163c-4fe8-897b-fd262ab6b134","update_time":"2021-11-05T09:07:57Z","vpc_cidr":"172.31.0.0/16","vpc_id":"12021c68-730f-41fa-9884-11c616f4c9ad"}]}},"schema":{"$ref":"#/definitions/ListCloudPhoneServersResponseBody"}}},"schemes":["https"],"summary":"查询云手机服务器列表","tags":["云手机服务器管理"],"x-apiexplorer-hide":false,"x-first-open-time":"2019-3-30","x-hybridcloud":false,"x-is-registered":"Y","x-open-region-cloud":"hc,hk,cmcc,fcs","x-order":1,"x-publishpath":"cph_api_0502","x-request-examples-description-1":"查询服务器列表","x-request-examples-url-1":"GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/servers","x-source":"SelfDeveloped","x-support-sdk":"Y"}}},"product_short":"CPH","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"查询云手机服务器列表","tags":"云手机服务器管理","uri":null,"version":"2.0"}