Adds get_console_connect_info API
Implements: blueprint hyper-v-rdp-console Currently graphical console access to Nova instances is limited to clients which are part of Nova itself (novnc, xvpvnc, spice-html5). The mentioned clients verify the validity of a console access token with the following private API: nova.consoleauth.rpcapi.ConsoleAuthAPI.check_token The usage of a private API precludes the possibility of employing external graphical console clients, including FreeRDP-WebConnect, used to connect to Hyper-V instances via RDP. This change adds a public API method that wraps the aforementioned check_token private API. This allows external clients to obtain the necessary protocol connection information by providing a token previously obtained with calls to get_vnc_console, get_spice_console or get_rdp_console. Includes V2 and V3 API implementations. Change-Id: Idd1e4f57b16bd1488f3b72bb064cef51321a7c79
This commit is contained in:
@@ -639,6 +639,14 @@
|
||||
"name": "ExtendedServicesDelete",
|
||||
"namespace": "http://docs.openstack.org/compute/ext/extended_services_delete/api/v2",
|
||||
"updated": "2013-12-10T00:00:00+00:00"
|
||||
},
|
||||
{
|
||||
"alias": "os-console-auth-tokens",
|
||||
"description": "Console token authentication support.",
|
||||
"links": [],
|
||||
"name": "ConsoleAuthTokens",
|
||||
"namespace": "http://docs.openstack.org/compute/ext/consoles-auth-tokens/api/v2",
|
||||
"updated": "2013-08-13T00:00:00+00:00"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -260,4 +260,7 @@
|
||||
<extension alias="os-extended-services-delete" updated="2013-12-10T00:00:00" namespace="http://docs.openstack.org/compute/ext/extended_services_delete/api/v2" name="ExtendedServicesDelete">
|
||||
<description>Services deletion support.</description>
|
||||
</extension>
|
||||
<extension alias="os-console-auth-tokens" updated="2013-08-13T00:00:00+00:00" namespace="http://docs.openstack.org/compute/ext/consoles-auth-tokens/api/v2" name="ConsoleAuthTokens">
|
||||
<description>Console token authentication support.</description>
|
||||
</extension>
|
||||
</extensions>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"console": {
|
||||
"instance_uuid": "b48316c5-71e8-45e4-9884-6c78055b9b13",
|
||||
"host": "localhost",
|
||||
"port": 5900,
|
||||
"internal_access_path": "51af38c3-555e-4884-a314-6c8cdde37444"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<console>
|
||||
<instance_uuid>b48316c5-71e8-45e4-9884-6c78055b9b13</instance_uuid>
|
||||
<host>localhost</host>
|
||||
<port>5900</port>
|
||||
<internal_access_path>51af38c3-555e-4884-a314-6c8cdde37444</internal_access_path>
|
||||
</console>
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"os-getRDPConsole": {
|
||||
"type": "rdp-html5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<os-getRDPConsole type="rdp-html5" />
|
||||
16
doc/api_samples/os-console-auth-tokens/server-post-req.json
Normal file
16
doc/api_samples/os-console-auth-tokens/server-post-req.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"server" : {
|
||||
"name" : "new-server-test",
|
||||
"imageRef" : "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b",
|
||||
"flavorRef" : "http://openstack.example.com/openstack/flavors/1",
|
||||
"metadata" : {
|
||||
"My Server Name" : "Apache1"
|
||||
},
|
||||
"personality" : [
|
||||
{
|
||||
"path" : "/etc/banner.txt",
|
||||
"contents" : "ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBpdCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5kIGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVsc2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4gQnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRoZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlvdSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vyc2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6b25zLiINCg0KLVJpY2hhcmQgQmFjaA=="
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
19
doc/api_samples/os-console-auth-tokens/server-post-req.xml
Normal file
19
doc/api_samples/os-console-auth-tokens/server-post-req.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<server xmlns="http://docs.openstack.org/compute/api/v1.1" imageRef="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b" flavorRef="http://openstack.example.com/openstack/flavors/1" name="new-server-test">
|
||||
<metadata>
|
||||
<meta key="My Server Name">Apache1</meta>
|
||||
</metadata>
|
||||
<personality>
|
||||
<file path="/etc/banner.txt">
|
||||
ICAgICAgDQoiQSBjbG91ZCBkb2VzIG5vdCBrbm93IHdoeSBp
|
||||
dCBtb3ZlcyBpbiBqdXN0IHN1Y2ggYSBkaXJlY3Rpb24gYW5k
|
||||
IGF0IHN1Y2ggYSBzcGVlZC4uLkl0IGZlZWxzIGFuIGltcHVs
|
||||
c2lvbi4uLnRoaXMgaXMgdGhlIHBsYWNlIHRvIGdvIG5vdy4g
|
||||
QnV0IHRoZSBza3kga25vd3MgdGhlIHJlYXNvbnMgYW5kIHRo
|
||||
ZSBwYXR0ZXJucyBiZWhpbmQgYWxsIGNsb3VkcywgYW5kIHlv
|
||||
dSB3aWxsIGtub3csIHRvbywgd2hlbiB5b3UgbGlmdCB5b3Vy
|
||||
c2VsZiBoaWdoIGVub3VnaCB0byBzZWUgYmV5b25kIGhvcml6
|
||||
b25zLiINCg0KLVJpY2hhcmQgQmFjaA==
|
||||
</file>
|
||||
</personality>
|
||||
</server>
|
||||
16
doc/api_samples/os-console-auth-tokens/server-post-resp.json
Normal file
16
doc/api_samples/os-console-auth-tokens/server-post-resp.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"server": {
|
||||
"adminPass": "MVk5HPrazHcG",
|
||||
"id": "5bbcc3c4-1da2-4437-a48a-66f15b1b13f9",
|
||||
"links": [
|
||||
{
|
||||
"href": "http://openstack.example.com/v2/openstack/servers/5bbcc3c4-1da2-4437-a48a-66f15b1b13f9",
|
||||
"rel": "self"
|
||||
},
|
||||
{
|
||||
"href": "http://openstack.example.com/openstack/servers/5bbcc3c4-1da2-4437-a48a-66f15b1b13f9",
|
||||
"rel": "bookmark"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<server xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1" id="5bbcc3c4-1da2-4437-a48a-66f15b1b13f9" adminPass="MVk5HPrazHcG">
|
||||
<metadata/>
|
||||
<atom:link href="http://openstack.example.com/v2/openstack/servers/5bbcc3c4-1da2-4437-a48a-66f15b1b13f9" rel="self"/>
|
||||
<atom:link href="http://openstack.example.com/openstack/servers/5bbcc3c4-1da2-4437-a48a-66f15b1b13f9" rel="bookmark"/>
|
||||
</server>
|
||||
Reference in New Issue
Block a user