Consolidate the APIs for getting consoles

A new API is added with microversion 2.6:

POST /servers/<uuid>/remote-consoles
{
  "remote_console": {
    "protocol": ["vnc"|"rdp"|"serial"|"spice"],
    "type": ["novnc"|"xpvnc"|"rdp-html5"|"spice-html5"|"serial"]
  }
}

which supports all protocols and types for remote consoles.

Implements: blueprint consolidate-console-api

APIImpact

Change-Id: I175a778cede8fbeee9c47a502ab7a98f6d73c074
This commit is contained in:
Radoslav Gerganov
2015-01-20 13:23:32 +02:00
parent 6969f270c5
commit 578bafeda0
13 changed files with 292 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ REST_API_VERSION_HISTORY = """REST API Version History:
Exposes delete_on_termination for os-extended-volumes
* 2.4 - Exposes reserved field in os-fixed-ips.
* 2.5 - Allow server search option ip6 for non-admin
* 2.6 - Consolidate the APIs for getting remote consoles
"""
# The minimum and maximum versions of the API supported
@@ -52,7 +53,7 @@ REST_API_VERSION_HISTORY = """REST API Version History:
# Note(cyeoh): This only applies for the v2.1 API once microversions
# support is fully merged. It does not affect the V2 API.
_MIN_API_VERSION = "2.1"
_MAX_API_VERSION = "2.5"
_MAX_API_VERSION = "2.6"
DEFAULT_API_VERSION = _MIN_API_VERSION