'Get a list of matching hypervisors.
:param hypervisor_match: The hypervisor host name or a portion of it.
The hypervisor hosts are selected with the host name matching
this pattern.
:param servers: If True, server information is also retrieved.'

def search(self, hypervisor_match, servers=False):

    if (self.api_version >= api_versions.APIVersion('2.53')):
        url = ('/os-hypervisors?hypervisor_hostname_pattern=%s' % parse.quote(hypervisor_match, safe=''))
        if servers:
            url += '&with_servers=True'
    else:
        target = ('servers' if servers else 'search')
        url = ('/os-hypervisors/%s/%s' % (parse.quote(hypervisor_match, safe=''), target))
    return self._list(url, 'hypervisors')
