@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/discover") @CheckPermission(roles={Role.TENANT_ADMIN}) public TaskResourceRep discoverHost(@PathParam("id") URI id){
  ArgValidator.checkFieldUriType(id,Host.class,"id");
  Host host=queryObject(Host.class,id,true);
  return doDiscoverHost(host);
}

@ POST @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Path ( "/{id}/discover" ) @ CheckPermission ( roles = { Role . TENANT_ADMIN } ) public TaskResourceRep discoverHost ( @ PathParam ( "id" ) URI id ) { ArgValidator . checkFieldUriType ( id , Host . class , "id" ) ; Host host = queryObject ( Host . class , id , true ) ; return doDiscoverHost ( host ) ; }
discovers ( refreshes ) a host . this is an asynchronous call .
