'Get the given host ID.'

def get_host_id_by_name(self, host_name):

    url = ('/host?filter=NAME::%s' % host_name)
    result = self.call(url, None, 'GET')
    self._assert_rest_result(result, _('Find    host    in    hostgroup    error.'))
    if (('data' in result) and result['data']):
        return result['data'][0]['ID']
