Obtaining the VNC Login Address
Function
This API is used to obtain the address for remotely logging in to an ECS using VNC.
URI
POST /v1/{project_id}/cloudservers/{server_id}/remote_console
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
|
server_id |
Yes |
Specifies the ECS ID. |
Request
Request parameters
Table 2 describes the request parameters.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
remote_console |
Yes |
Object |
Obtains the address for remotely logging in to an ECS. For details, see Table 3. |
Response
Response parameters
Table 4 describes the response parameters.
|
Parameter |
Type |
Description |
|---|---|---|
|
remote_console |
Object |
Obtains the address for remotely logging in to an ECS. For details, see Table 5. |
Example Request
POST https://{endpoint}/v1/13c67a214ced4afb88d911ae4bd5721a/cloudservers/47bc79ae-df61-4ade-9197-283a74e5d70e/remote_console
{
"remote_console": {
"protocol": "vnc",
"type": "novnc"
}
}
Example Response
{
"remote_console": {
"type": "novnc",
"protocol": "vnc",
"url": "https://nova-novncproxy.az1.dc1.domainname.com:8002/vnc_auto.html?token=0fda3eca-8232-4249-a69f-44ce8ab31be6&lang=EN&tLength=70"
}
}
Returned Values
Error Codes
Last Article: Cold Migrating an ECS
Next Article: Modifying the Specifications of an ECS
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.