Querying Cloud Phone Details
Function
This API is used to query cloud phone details.
URI
GET /v1/{project_id}/cloud-phone/phones/{phone_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. |
phone_id |
Yes |
String |
Specifies the cloud phone ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling an Identity and Access Management (IAM) API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
request_id |
String |
Specifies the unique identifier of the cloud phone. The value can contain a maximum of 32 bytes. |
phone_name |
String |
Specifies the cloud phone name. The value can contain a maximum of 65 bytes. |
server_id |
String |
Specifies the cloud phone server ID, which can contain a maximum of 32 bytes. |
phone_id |
String |
Specifies the unique identifier of the cloud phone. The value can contain a maximum of 32 bytes. |
image_id |
String |
Specifies the unique identifier of the cloud phone. The value can contain a maximum of 32 bytes. |
image_version |
String |
Specifies the image version. |
vnc_enable |
String |
Whether to enable the VNC service on the cloud phone (expired)
|
phone_model_name |
String |
Specifies the cloud phone flavor. The value can contain a maximum of 64 bytes. |
status |
Integer |
Specifies the cloud phone status.
|
access_infos |
Array of PhoneAccessInfo objects |
Specifies the cloud phone access information. |
property |
String |
Specifies the cloud phone attribute character string. The value can contain a maximum of 2048 bytes. |
metadata |
metadata object |
Specifies the order and product information. |
phone_data_volume |
PhoneDataVolume object |
Specifies the data disk information of the cloud phone. |
imei |
String |
Specifies the cloud phone IMEI. |
traffic_type |
String |
Specifies the cloud phone route type.
|
volume_mode |
Integer |
Specifies whether the physical disk of the cloud phone is independent.
|
availability_zone |
String |
Specifies the AZ where the cloud phone server is deployed. |
has_encrypt |
Boolean |
Specifies whether file-level encryption is enabled on the cloud phone. |
create_time |
String |
Creation Time, The UTC time is in YYYY-MM-DDTHH:MM:SSZ format. |
update_time |
String |
Update Time, The UTC time is in YYYY-MM-DDTHH:MM:SSZ format. |
Parameter |
Type |
Description |
---|---|---|
type |
String |
Specifies the user-defined port type. The value can contain a maximum of 16 bytes. |
device_ip |
String |
(Expired) Specifies the cloud phone IP address. |
phone_ip |
String |
Specifies the cloud phone IP address. |
listen_port |
Integer |
Specifies the listening port of a program that is enabled in a cloud phone to provide services. |
access_ip |
String |
(Expired) Specifies the IP address for accessing the cloud phone server. |
public_ip |
String |
Specifies the public IP address of the cloud phone server. If non-public access is configured for the access port, an empty string is returned. |
intranet_ip |
String |
(Expired) Specifies the private IP address of the cloud phone server. |
server_ip |
String |
Specifies the private IP address of the cloud phone server. |
access_port |
Integer |
Specifies the access port of a program that is mapped to a port on the public network. The program is enabled in a cloud phone to provide services. |
phone_ipv6 |
String |
(New) Specifies the cloud phone IPv6 address. |
server_ipv6 |
String |
(New) Specifies the IPv6 address of the cloud phone server. |
Example Requests
Querying Cloud Phone Details
GET https://{CPH Endpoint}/v1/{project_id}/cloud-phone/phones/1564567b8bab40f34711234cb80d8574
Example Responses
Status code: 200
OK
{ "request_id" : "70bb40bef50e4a14b116a5a527fd7432", "phone_name" : "mobile-0049", "server_id" : "88b8449b896f3a4f0ad57222dd91909", "phone_id" : "1564567b8bab40f34711234cb80d8574", "image_id" : "88b8449b896f3a4f0ad57222dd91909", "phone_model_name" : "aphs1.large.2.aosp", "image_version" : "AOSP 7.0", "status" : 2, "imei" : 869287243397729, "availability_zone" : "cn-southwest-242b", "traffic_type" : "direct", "volume_mode" : 0, "phone_data_volume" : { "volume_type" : "GPSSD", "volume_size" : 10 }, "access_infos" : [ { "type" : "server1", "device_ip" : "10.237.0.61", "phone_ip" : "10.237.0.61", "listen_port" : 38080, "access_ip" : "213.32.43.210", "public_ip" : "213.32.43.210", "intranet_ip" : "172.31.0.123", "server_ip" : "172.31.0.123", "access_port" : 14308, "phone_ipv6" : "fd00::aed:3d", "server_ipv6" : "2001:db8:a583:b62:e5ea:4a6b:de7b:f97d" }, { "type" : "server2", "device_ip" : "10.237.0.61", "phone_ip" : "10.237.0.61", "listen_port" : 38081, "access_ip" : "213.32.43.210", "public_ip" : "213.32.43.210", "intranet_ip" : "172.31.0.123", "server_ip" : "172.31.0.123", "access_port" : 14328, "phone_ipv6" : "fd00::aed:3d", "server_ipv6" : "2001:db8:a583:b62:e5ea:4a6b:de7b:f97d" } ], "property" : "{\"sys.prop.writephonenum\":\"13666666666\",\"sys.prop.writeimsi\":\"460021624617113\",\"sys.prop.writewifissid\":\"test_wifi\"}", "metadata" : { "order_id" : "CS1710111105S8IPB", "product_id" : "00301-25217-0--0" }, "create_time" : "2017-10-10T00:00:00Z", "update_time" : "2018-11-12T00:00:00Z" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot