@classmethod
def from_vhost(cls, vhost):
    """Retrieve webbacc id associated to a webacc vhost"""
    result = cls.list({'items_per_page': 500})
    webaccs = {}
    for webacc in result:
        for vhost in webacc['vhosts']:
            webaccs[vhost['name']] = webacc['id']
    return webaccs.get(vhost)
