@POST @Produces({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON}) @Path("/{id}/discover") @CheckPermission(roles={Role.SYSTEM_ADMIN,Role.RESTRICTED_SYSTEM_ADMIN}) public TaskResourceRep discoverComputeSystem(@PathParam("id") URI id){
  ArgValidator.checkFieldUriType(id,ComputeSystem.class,"id");
  ComputeSystem cs=queryObject(ComputeSystem.class,id,true);
  return doDiscoverComputeSystem(cs);
}

@ POST @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Path ( "/{id}/discover" ) @ CheckPermission ( roles = { Role . SYSTEM_ADMIN , Role . RESTRICTED_SYSTEM_ADMIN } ) public TaskResourceRep discoverComputeSystem ( @ PathParam ( "id" ) URI id ) { ArgValidator . checkFieldUriType ( id , ComputeSystem . class , "id" ) ; ComputeSystem cs = queryObject ( ComputeSystem . class , id , true ) ; return doDiscoverComputeSystem ( cs ) ; }
discovers an already created compute system
