public static base_responses update ( nitro_service client , gslbservice resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { gslbservice updateresources [ ] = new gslbservice [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new gslbservice ( ) ; updateresources [ i ] . servicename = resources [ i ] . servicename ; updateresources [ i ] . ipaddress = resources [ i ] . ipaddress ; updateresources [ i ] . publicip = resources [ i ] . publicip ; updateresources [ i ] . publicport = resources [ i ] . publicport ; updateresources [ i ] . cip = resources [ i ] . cip ; updateresources [ i ] . cipheader = resources [ i ] . cipheader ; updateresources [ i ] . sitepersistence = resources [ i ] . sitepersistence ; updateresources [ i ] . siteprefix = resources [ i ] . siteprefix ; updateresources [ i ] . maxclient = resources [ i ] . maxclient ; updateresources [ i ] . healthmonitor = resources [ i ] . healthmonitor ; updateresources [ i ] . maxbandwidth = resources [ i ] . maxbandwidth ; updateresources [ i ] . downstateflush = resources [ i ] . downstateflush ; updateresources [ i ] . maxaaausers = resources [ i ] . maxaaausers ; updateresources [ i ] . viewname = resources [ i ] . viewname ; updateresources [ i ] . viewip = resources [ i ] . viewip ; updateresources [ i ] . monthreshold = resources [ i ] . monthreshold ; updateresources [ i ] . weight = resources [ i ] . weight ; updateresources [ i ] . monitor_name_svc = resources [ i ] . monitor_name_svc ; updateresources [ i ] . hashid = resources [ i ] . hashid ; updateresources [ i ] . comment = resources [ i ] . comment ; updateresources [ i ] . appflowlog = resources [ i ] . appflowlog ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update gslbservice resources .