code: def from_vhost(cls, vhost):
          
          result = Vhost().list()
          paas_hosts = {}
          for host in result:
              paas_hosts[host['name']] = host['paas_id']
  
          return paas_hosts.get(vhost)
docs: Retrieve paas instance id associated to a vhost.