'Retrieve a console url of a server.
:param server: server to get console url for
:param console_type: type can be novnc, xvpvnc, spice-html5,
rdp-html5 and serial.'

@api_versions.wraps('2.0', '2.5')
def get_console_url(self, server, console_type):

    action = CONSOLE_TYPE_ACTION_MAPPING.get(console_type)
    if (not action):
        raise exceptions.UnsupportedConsoleType(console_type)
    return self._action(action, server, {'type': console_type})
