public static base_responses update(nitro_service client, snmpalarm resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpalarm updateresources[] = new snmpalarm[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new snmpalarm();
				updateresources[i].trapname = resources[i].trapname;
				updateresources[i].thresholdvalue = resources[i].thresholdvalue;
				updateresources[i].normalvalue = resources[i].normalvalue;
				updateresources[i].time = resources[i].time;
				updateresources[i].state = resources[i].state;
				updateresources[i].severity = resources[i].severity;
				updateresources[i].logging = resources[i].logging;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
public static base_responses update ( nitro_service client , snmpalarm resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { snmpalarm updateresources [ ] = new snmpalarm [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new snmpalarm ( ) ; updateresources [ i ] . trapname = resources [ i ] . trapname ; updateresources [ i ] . thresholdvalue = resources [ i ] . thresholdvalue ; updateresources [ i ] . normalvalue = resources [ i ] . normalvalue ; updateresources [ i ] . time = resources [ i ] . time ; updateresources [ i ] . state = resources [ i ] . state ; updateresources [ i ] . severity = resources [ i ] . severity ; updateresources [ i ] . logging = resources [ i ] . logging ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update snmpalarm resources.