.. versionadded:: Fluorine

    Get service according to name and parent service ID.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/service/get

    :param service_name: Name of the service
    :param service_rootid: ID of service parent

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: Service details, False if no service found or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.service_get 'My service' 11

def service_get(service_name=None, service_rootid=None, **kwargs):
    '''
    .. versionadded:: Fluorine

    Get service according to name and parent service ID.

    .. note::
        https://www.zabbix.com/documentation/3.4/manual/api/reference/service/get

    :param service_name: Name of the service
    :param service_rootid: ID of service parent

    :param _connection_user: Optional - zabbix user (can also be set in opts or pillar, see module's docstring)
    :param _connection_password: Optional - zabbix password (can also be set in opts or pillar, see module's docstring)
    :param _connection_url: Optional - url of zabbix frontend (can also be set in opts, pillar, see module's docstring)

    :return: Service details, False if no service found or on failure.

    CLI Example:
    .. code-block:: bash

        salt '*' zabbix.service_get 'My service' 11
    '''

    conn_args = _login(**kwargs)
    ret = {}
    try:
        if conn_args:
            method = 'service.get'
            if not service_name:
                return {'result': False, 'comment': 'service_name param is required'}
            params = {'output': ['name']}
            if service_rootid:
                params['parentids'] = service_rootid
            params['filter'] = {'name': service_name}
            params = _params_extend(params, _ignore_name=True, **kwargs)
            ret = _query(method, params, conn_args['url'], conn_args['auth'])
            return ret['result'] if ret['result'] else False
        else:
            raise KeyError
    except KeyError:
        return ret