'Get a remote console.
For a full list of available parameters, please refer to the official
API reference:
TODO (markus_z) The api-ref for that isn\'t yet available, update this
here when the docs in Nova are updated. The old API is at
http://developer.openstack.org/api-ref/compute/#get-serial-console-os-getserialconsole-action'

def get_remote_console(self, server_id, console_type, protocol, **kwargs):

    param = {'remote_console': {'type': console_type, 'protocol': protocol}}
    post_body = json.dumps(param)
    (resp, body) = self.post(('servers/%s/remote-consoles' % server_id), post_body)
    body = json.loads(body)
    schema = self.get_schema(self.schema_versions_info)
    self.validate_response(schema.get_remote_consoles, resp, body)
    return rest_client.ResponseBody(resp, body)
