def get_params(request):
    """ return the request data as a dictionary.

    :param request: a bottle request object.
     :type request: *

    :return: the request data dictionary.
     :rtype: dict(str: *)
    """
    params = dict(request.forms)
    if 'time' in params:
        params['time'] = float(params['time'])
    if 'reason' in params:
        params['reason'] = int(params['reason'])
    if 'vm_uuids' in params:
        params['vm_uuids'] = params['vm_uuids'].split(',')
    return params