from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
console = client.cloud.gpu_baremetal_clusters.servers.get_console(
instance_id="instance_id",
project_id=0,
region_id=0,
)
print(console.remote_console)
{
"remote_console": {
"protocol": "vnc",
"type": "novnc",
"url": "https://console-novnc-lux4.cloud.gcore.com/vnc_auto.html?path=%3Ftoken%3Df445c4b6-0a77-4fae-bc0e-147201dbfbea"
}
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
console = client.cloud.gpu_baremetal_clusters.servers.get_console(
instance_id="instance_id",
project_id=0,
region_id=0,
)
print(console.remote_console)
{
"remote_console": {
"protocol": "vnc",
"type": "novnc",
"url": "https://console-novnc-lux4.cloud.gcore.com/vnc_auto.html?path=%3Ftoken%3Df445c4b6-0a77-4fae-bc0e-147201dbfbea"
}
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Instance ID
Remote console data
The response is of type object
.