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

@ POST @ Produces ( { MediaType . APPLICATION_XML , MediaType . APPLICATION_JSON } ) @ Path ( "/{id}/discover" ) @ CheckPermission ( roles = { Role . SYSTEM_ADMIN , Role . RESTRICTED_SYSTEM_ADMIN } ) public TaskResourceRep discoverNetworkSystem ( @ PathParam ( "id" ) URI id ) { ArgValidator . checkFieldUriType ( id , NetworkSystem . class , "id" ) ; NetworkSystem device = queryObject ( NetworkSystem . class , id , true ) ; return doDiscoverNetworkSystem ( device ) ; }
discovers ( refreshes ) a network system . this is an asynchronous call . currently this updates the end point ( topology ) information , which will be reconciled with the existing networks .
