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