public static base_response add ( nitro_service client , ntpserver resource ) throws Exception { ntpserver addresource = new ntpserver ( ) ; addresource . serverip = resource . serverip ; addresource . servername = resource . servername ; addresource . minpoll = resource . minpoll ; addresource . maxpoll = resource . maxpoll ; addresource . autokey = resource . autokey ; addresource . key = resource . key ; return addresource . add_resource ( client ) ; }
Use this API to add ntpserver .