public static base_responses add ( nitro_service client , ntpserver resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { ntpserver addresources [ ] = new ntpserver [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { addresources [ i ] = new ntpserver ( ) ; addresources [ i ] . serverip = resources [ i ] . serverip ; addresources [ i ] . servername = resources [ i ] . servername ; addresources [ i ] . minpoll = resources [ i ] . minpoll ; addresources [ i ] . maxpoll = resources [ i ] . maxpoll ; addresources [ i ] . autokey = resources [ i ] . autokey ; addresources [ i ] . key = resources [ i ] . key ; } result = add_bulk_request ( client , addresources ) ; } return result ; }
Use this API to add ntpserver resources .