@GET @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/hosts") @Deprecated public HostList listHosts(@PathParam("id") URI id) throws DatabaseException {
  getTenantById(id,false);
  verifyAuthorizedInTenantOrg(id,getUserFromContext());
  HostList list=new HostList();
  list.setHosts(map(ResourceTypeEnum.HOST,listChildren(id,Host.class,"label","tenant")));
  return list;
}

@ GET @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Path ( "/{id}/hosts" ) @ Deprecated public HostList listHosts ( @ PathParam ( "id" ) URI id ) throws DatabaseException { getTenantById ( id , false ) ; verifyAuthorizedInTenantOrg ( id , getUserFromContext ( ) ) ; HostList list = new HostList ( ) ; list . setHosts ( map ( ResourceTypeEnum . HOST , listChildren ( id , Host . class , "label" , "tenant" ) ) ) ; return list ; }
lists the id and name for all the hosts that belong to the given tenant organization . < p > this method is deprecated . use / compute / hosts instead
