Querying Details About a Cloud Phone Server
Function Description
URI
GET /v1/{project_id}/cloud-phone/servers/{server_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
server_id |
Yes |
String |
Specifies the unique identifier of the cloud phone server. |
Request
Response
- Response parameters
Parameter
Type
Description
request_id
String
Specifies the unique request ID.
server_name
String
Specifies the name of the cloud phone server.
The name can contain a maximum of 65 characters, including only letters, digits, underscores (_), and hyphens (-).
availability_zone
String
Specifies the AZ where the cloud phone server is deployed.
server_id
String
Specifies the unique identifier of the cloud phone server. The identifier can contain a maximum of 32 bytes.
server_model_name
String
Specifies the flavor of the cloud phone server. The flavor can contain a maximum of 64 bytes.
For details, see Server Flavors.
phone_model_name
String
Specifies the cloud phone flavor, which can contain a maximum of 64 bytes.
For details, see Cloud Phone Flavor List.
keypair_name
String
Specifies the name of the key pair used to connect to a cloud phone. The name can contain a maximum of 64 bytes.
status
Integer
Specifies the status of the cloud phone server.
- 0, 1, 3, or 4: Creating
- 2: Abnormal
- 5: Normal
- 8: Frozen
- 10: Stopped
- 11: Being stopped
- 12: Stopping failed
- 13: Starting
vpc_id
String
Specifies the ID of the VPC where the cloud phone server is deployed.
When network_version is set to
- v1, the value of vpc_id is the ID of the tenant VPC to which the cloud phone server belongs.
- v2, the value of vpc_id is the ID of the VPC specified by the tenant during the cloud phone server creation.
cidr
String
Specifies the CIDR block of the VPC where the cloud phone server is deployed.
When network_version is set to
- v1, the value of cidr is the CIDR block of the tenant VPC to which the cloud phone server belongs.
- v2, the value of cidr is the CIDR block of the VPC specified by the tenant during the cloud phone server creation.
NOTE:The value of this field is the same as that of vpc_cidr. This field will be discarded later.
vpc_cidr
String
Specifies the CIDR block of the VPC where the cloud phone server is deployed.
When network_version is set to
- v1, the value of vpc_cidr is the CIDR block of the tenant VPC to which the cloud phone server belongs.
- v2, the value of vpc_cidr is the CIDR block of the VPC specified by the tenant during the cloud phone server creation.
subnet_id
String
Specifies the ID of the VPC where the cloud phone server is deployed.
Only when network_version is set to
- v2, the value of subnet_id is the ID of the subnet specified by the tenant during the cloud phone server creation.
- v1, the value of subnet_id is the ID of the tenant subnet to which the cloud phone server belongs.
subnet_cidr
String
Specifies the subnet CIDR block where the cloud phone server is deployed.
When network_version is set to
- v2, the value of subnet_cidr is the CIDR block of the subnet specified by the tenant during the cloud phone server creation.
- v1, the value of subnet_cidr is the CIDR block of the tenant subnet to which the cloud phone server belongs.
resource_project_id
String
Specifies the project ID of the cloud phone server.
metadata
Object
Specifies the order and product information. For details, see Table 2.
addresses
Array of objects
Specifies IP addresses of the cloud phone server. For details, see Table 3.
band_widths
Array of objects
Specifies the structure array of the bandwidths used by the cloud phone server. For details, see Table 4.
volumes
Array of objects
Specifies the structure array of volumes used by the cloud phone server. For details, see Table 5.
network_version
String
Specifies which type of network the cloud phone server uses.
The type can be:
- v1: system network
- v2: custom network
enterprise_project_id
String
Specifies the ID of the enterprise project to which the cloud phone server belongs.
security_groups
Array of strings
Specifies the security group bound to the extension NIC of the cloud phone server.
For cloud phone servers that use a custom network, an empty list will be returned for this field.
create_time
String
Specifies when the cloud phone server was created.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
update_time
String
Specifies when the cloud phone server was updated.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
Table 2 Data structure description of metadata Parameter
Type
Description
order_id
String
Specifies the order ID, which can contain a maximum of 64 bytes.
product_id
String
Specifies the product ID, which can contain a maximum of 64 bytes.
Table 3 Data structure description of address Parameter
Type
Description
intranet_ip
String
Specifies the internal IP address of the cloud phone server. This field has expired.
access_ip
String
Specifies the public IP address of the cloud phone server. This field has expired.
server_ip
String
Specifies the internal IP address of the cloud phone server. This field is newly added.
public_ip
String
Specifies the public IP address of the cloud phone server. This field is newly added.
Table 4 Data structure description of band_widths Parameter
Type
Description
band_width_name
String
Specifies the bandwidth name of the cloud phone server.
band_width_id
String
Specifies the unique identifier of the bandwidth used by the cloud phone server.
band_width_size
Integer
Specifies the bandwidth size of the cloud phone server.
band_width_charge_mode
Integer
Specifies by which the bandwidth used by the cloud phone server is billed.
The value can be:
- 0: billed by bandwidth
- 1: billed by traffic
band_width_share_type
Integer
Specifies the bandwidth type of the cloud phone server.
- 0: dedicated bandwidth
- 1: shared bandwidth
create_time
String
Specifies when the cloud phone server bandwidth was created.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
update_time
String
Specifies when the cloud phone server bandwidth was updated.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
Table 5 Data structure description of volumes Parameter
Type
Description
volume_name
String
Specifies the disk name of the cloud phone server.
volume_id
String
Specifies the unique identifier of the cloud phone server disk.
volume_size
Integer
Specifies the disk size of the cloud phone server, in GB.
volume_type
String
Specifies the disk type of the cloud phone server.
create_time
String
Specifies when the disk was created.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
update_time
String
Specifies when the disk was updated.
It is a UTC time in YYYY-MM-DDTHH:MM:SSZ format.
- Example response
{ "server_name": "cph-418540-1620-40-old-1", "availability_zone": "br-iaas-odin1a", "addresses": [ { "public_ip": "10.246.xxx.xxx", "server_ip": "172.31.22.245", "intranet_ip": "172.31.22.245", "access_ip": "10.246.xxx.xxx" } ], "metadata": { "product_id": "OFFI451249149551403012", "order_id": "CS2007271727F9XJE" }, "create_time": "2020-01-01T00:00:00Z", "vpc_id": "12021c68-730f-41fa-9884-11c616f4c9ad", "phone_model_name": "kg1.cg.c40.d30SSD.e1v1.old", "subnet_cidr": "172.31.0.0/16", "keypair_name": "KeyPair-1230", "resource_project_id": "06a5b529fa80d28b2f53c014024bed44", "server_id": "6edb89150bc742aa81fc8ac4ff047297", "server_model_name": "physical.kg1.4xlarge.cg", "update_time": "2020-01-01T00:00:00Z", "cidr": "172.31.0.0/16", "vpc_cidr": "172.31.0.0/16", "subnet_id": "5784d2fe-fefd-42f0-a7f1-e88454d8bc0f", "subnet_cidr": "172.31.0.0/16", "request_id": "91d5bf46a817466daa25fc5824ab9717", "status": 5, "network_version": "v1", "enterprise_project_id": "0", "security_groups": [] }
- Example response - cloud phone server that uses a custom network
{ "server_name": "cph-2ykg-asdv-2", "server_id": "95bf815ae612435d9ab2af7ad91dcaab", "server_model_name": "physical.kg1.4xlarge.cp", "phone_model_name": "kg1.cp.c150.d10GPSSD.e2v2.br150", "keypair_name": "KeyPair-wangnan", "status": 5, "availability_zone": "br-iaas-odin1a", "create_time": "2021-02-18T11:36:20Z", "update_time": "2021-02-18T11:50:14Z", "resource_project_id": "06a5b529fa80d28b2f53c014024bed44", "metadata": { "product_id": "OFFI454827367575412738", "order_id": "CS2102181935Q80Q9" }, "volumes": [ { "volume_name": "VOLUME_519ebd1fff7e4bd78af1c4ebe5d9477b", "volume_id": "2a5dae30-8d28-4759-8d2c-5081237ea3cb", "volume_size": 600, "volume_type": "SSD", "create_time": "2021-02-18T11:36:20Z", "update_time": "2021-02-18T11:48:41Z" }, { "volume_name": "VOLUME_ad0221b2e22c41d295831133491dd0d2", "volume_id": "8905aa69-51a9-4439-add5-5c8fb8aceeab", "volume_size": 600, "volume_type": "SSD", "create_time": "2021-02-18T11:36:20Z", "update_time": "2021-02-18T11:49:08Z" }, { "volume_name": "VOLUME_88ac4752585c49dea6031931e60aebb4", "volume_id": "2673a67b-4154-4e24-a107-1c41bfb7efc4", "volume_size": 600, "volume_type": "SSD", "create_time": "2021-02-18T11:36:20Z", "update_time": "2021-02-18T11:48:41Z" } ], "addresses": [ { "intranet_ip": "192.168.0.74", "access_ip": "10.246.169.234", "server_ip": "192.168.0.74", "public_ip": "10.246.169.234" }, { "intranet_ip": "192.168.0.120", "access_ip": "10.246.168.135", "server_ip": "192.168.0.120", "public_ip": "10.246.168.135" } ], "band_widths": [ { "band_width_name": "d2d5f7f49e2e409283d41cc0a63cacee", "band_width_id": "8b85d44b-ac6f-48fb-bbab-e876e9c3502a", "band_width_size": 300, "band_width_charge_mode": 1, "band_width_share_type": 0, "create_time": "2021-02-18 11:48:40", "update_time": "2021-02-18 11:48:40" }, { "band_width_name": "5435eeaa669d4b84aea25e404cf3acf1", "band_width_id": "fa788f38-7198-44ec-867b-93d49e2c5c14", "band_width_size": 300, "band_width_charge_mode": 1, "band_width_share_type": 0, "create_time": "2021-02-18 11:48:38", "update_time": "2021-02-18 11:48:38" } ], "vpc_id": "4fdf12dc-7a53-489e-b448-32e0eed99ea7", "subnet_id": "99462cb1-511c-4b3e-8f09-c80565304843", "cidr": "172.31.0.0/16", "vpc_cidr": "172.31.0.0/16", "subnet_cidr": "172.31.0.0/16", "network_version": "v2", "enterprise_project_id": "0", "security_groups": ["7f46bf9e-9050-48d6-9034-65711f9595f8"], "request_id": "e09b46f28bfa4ee58c3cbd0075db48fc" }
Returned Values
See Returned Values.
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