public static base_responses update(nitro_service client, servicegroup resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			servicegroup updateresources[] = new servicegroup[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new servicegroup();
				updateresources[i].servicegroupname = resources[i].servicegroupname;
				updateresources[i].servername = resources[i].servername;
				updateresources[i].port = resources[i].port;
				updateresources[i].weight = resources[i].weight;
				updateresources[i].customserverid = resources[i].customserverid;
				updateresources[i].serverid = resources[i].serverid;
				updateresources[i].hashid = resources[i].hashid;
				updateresources[i].monitor_name_svc = resources[i].monitor_name_svc;
				updateresources[i].dup_weight = resources[i].dup_weight;
				updateresources[i].maxclient = resources[i].maxclient;
				updateresources[i].maxreq = resources[i].maxreq;
				updateresources[i].healthmonitor = resources[i].healthmonitor;
				updateresources[i].cacheable = resources[i].cacheable;
				updateresources[i].cip = resources[i].cip;
				updateresources[i].cipheader = resources[i].cipheader;
				updateresources[i].usip = resources[i].usip;
				updateresources[i].pathmonitor = resources[i].pathmonitor;
				updateresources[i].pathmonitorindv = resources[i].pathmonitorindv;
				updateresources[i].useproxyport = resources[i].useproxyport;
				updateresources[i].sc = resources[i].sc;
				updateresources[i].sp = resources[i].sp;
				updateresources[i].rtspsessionidremap = resources[i].rtspsessionidremap;
				updateresources[i].clttimeout = resources[i].clttimeout;
				updateresources[i].svrtimeout = resources[i].svrtimeout;
				updateresources[i].cka = resources[i].cka;
				updateresources[i].tcpb = resources[i].tcpb;
				updateresources[i].cmp = resources[i].cmp;
				updateresources[i].maxbandwidth = resources[i].maxbandwidth;
				updateresources[i].monthreshold = resources[i].monthreshold;
				updateresources[i].downstateflush = resources[i].downstateflush;
				updateresources[i].tcpprofilename = resources[i].tcpprofilename;
				updateresources[i].httpprofilename = resources[i].httpprofilename;
				updateresources[i].comment = resources[i].comment;
				updateresources[i].appflowlog = resources[i].appflowlog;
				updateresources[i].netprofile = resources[i].netprofile;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
public static base_responses update ( nitro_service client , servicegroup resources [ ] ) throws Exception { base_responses result = null ; if ( resources != null && resources . length > 0 ) { servicegroup updateresources [ ] = new servicegroup [ resources . length ] ; for ( int i = 0 ; i < resources . length ; i ++ ) { updateresources [ i ] = new servicegroup ( ) ; updateresources [ i ] . servicegroupname = resources [ i ] . servicegroupname ; updateresources [ i ] . servername = resources [ i ] . servername ; updateresources [ i ] . port = resources [ i ] . port ; updateresources [ i ] . weight = resources [ i ] . weight ; updateresources [ i ] . customserverid = resources [ i ] . customserverid ; updateresources [ i ] . serverid = resources [ i ] . serverid ; updateresources [ i ] . hashid = resources [ i ] . hashid ; updateresources [ i ] . monitor_name_svc = resources [ i ] . monitor_name_svc ; updateresources [ i ] . dup_weight = resources [ i ] . dup_weight ; updateresources [ i ] . maxclient = resources [ i ] . maxclient ; updateresources [ i ] . maxreq = resources [ i ] . maxreq ; updateresources [ i ] . healthmonitor = resources [ i ] . healthmonitor ; updateresources [ i ] . cacheable = resources [ i ] . cacheable ; updateresources [ i ] . cip = resources [ i ] . cip ; updateresources [ i ] . cipheader = resources [ i ] . cipheader ; updateresources [ i ] . usip = resources [ i ] . usip ; updateresources [ i ] . pathmonitor = resources [ i ] . pathmonitor ; updateresources [ i ] . pathmonitorindv = resources [ i ] . pathmonitorindv ; updateresources [ i ] . useproxyport = resources [ i ] . useproxyport ; updateresources [ i ] . sc = resources [ i ] . sc ; updateresources [ i ] . sp = resources [ i ] . sp ; updateresources [ i ] . rtspsessionidremap = resources [ i ] . rtspsessionidremap ; updateresources [ i ] . clttimeout = resources [ i ] . clttimeout ; updateresources [ i ] . svrtimeout = resources [ i ] . svrtimeout ; updateresources [ i ] . cka = resources [ i ] . cka ; updateresources [ i ] . tcpb = resources [ i ] . tcpb ; updateresources [ i ] . cmp = resources [ i ] . cmp ; updateresources [ i ] . maxbandwidth = resources [ i ] . maxbandwidth ; updateresources [ i ] . monthreshold = resources [ i ] . monthreshold ; updateresources [ i ] . downstateflush = resources [ i ] . downstateflush ; updateresources [ i ] . tcpprofilename = resources [ i ] . tcpprofilename ; updateresources [ i ] . httpprofilename = resources [ i ] . httpprofilename ; updateresources [ i ] . comment = resources [ i ] . comment ; updateresources [ i ] . appflowlog = resources [ i ] . appflowlog ; updateresources [ i ] . netprofile = resources [ i ] . netprofile ; } result = update_bulk_request ( client , updateresources ) ; } return result ; }
Use this API to update servicegroup resources.