Use this API to update nsacl resources.
480768
public static base_responses update(nitro_service client, nsacl resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsacl updateresources[] = new nsacl[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nsacl();
				updateresources[i].aclname = resources[i].aclname;
				updateresources[i].aclaction = resources[i].aclaction;
				updateresources[i].srcip = resources[i].srcip;
				updateresources[i].srcipop = resources[i].srcipop;
				updateresources[i].srcipval = resources[i].srcipval;
				updateresources[i].srcport = resources[i].srcport;
				updateresources[i].srcportop = resources[i].srcportop;
				updateresources[i].srcportval = resources[i].srcportval;
				updateresources[i].destip = resources[i].destip;
				updateresources[i].destipop = resources[i].destipop;
				updateresources[i].destipval = resources[i].destipval;
				updateresources[i].destport = resources[i].destport;
				updateresources[i].destportop = resources[i].destportop;
				updateresources[i].destportval = resources[i].destportval;
				updateresources[i].srcmac = resources[i].srcmac;
				updateresources[i].protocol = resources[i].protocol;
				updateresources[i].protocolnumber = resources[i].protocolnumber;
				updateresources[i].icmptype = resources[i].icmptype;
				updateresources[i].icmpcode = resources[i].icmpcode;
				updateresources[i].vlan = resources[i].vlan;
				updateresources[i].Interface = resources[i].Interface;
				updateresources[i].priority = resources[i].priority;
				updateresources[i].logstate = resources[i].logstate;
				updateresources[i].ratelimit = resources[i].ratelimit;
				updateresources[i].established = resources[i].established;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
259897
public static base_response update(nitro_service client, nsacl6 resource) throws Exception {
		nsacl6 updateresource = new nsacl6();
		updateresource.acl6name = resource.acl6name;
		updateresource.aclaction = resource.aclaction;
		updateresource.srcipv6 = resource.srcipv6;
		updateresource.srcipop = resource.srcipop;
		updateresource.srcipv6val = resource.srcipv6val;
		updateresource.srcport = resource.srcport;
		updateresource.srcportop = resource.srcportop;
		updateresource.srcportval = resource.srcportval;
		updateresource.destipv6 = resource.destipv6;
		updateresource.destipop = resource.destipop;
		updateresource.destipv6val = resource.destipv6val;
		updateresource.destport = resource.destport;
		updateresource.destportop = resource.destportop;
		updateresource.destportval = resource.destportval;
		updateresource.srcmac = resource.srcmac;
		updateresource.protocol = resource.protocol;
		updateresource.protocolnumber = resource.protocolnumber;
		updateresource.icmptype = resource.icmptype;
		updateresource.icmpcode = resource.icmpcode;
		updateresource.vlan = resource.vlan;
		updateresource.Interface = resource.Interface;
		updateresource.priority = resource.priority;
		updateresource.established = resource.established;
		return updateresource.update_resource(client);
	}
343048
public static base_responses update(nitro_service client, nsip6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip6 updateresources[] = new nsip6[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nsip6();
				updateresources[i].ipv6address = resources[i].ipv6address;
				updateresources[i].td = resources[i].td;
				updateresources[i].nd = resources[i].nd;
				updateresources[i].icmp = resources[i].icmp;
				updateresources[i].vserver = resources[i].vserver;
				updateresources[i].telnet = resources[i].telnet;
				updateresources[i].ftp = resources[i].ftp;
				updateresources[i].gui = resources[i].gui;
				updateresources[i].ssh = resources[i].ssh;
				updateresources[i].snmp = resources[i].snmp;
				updateresources[i].mgmtaccess = resources[i].mgmtaccess;
				updateresources[i].restrictaccess = resources[i].restrictaccess;
				updateresources[i].state = resources[i].state;
				updateresources[i].map = resources[i].map;
				updateresources[i].dynamicrouting = resources[i].dynamicrouting;
				updateresources[i].hostroute = resources[i].hostroute;
				updateresources[i].ip6hostrtgw = resources[i].ip6hostrtgw;
				updateresources[i].metric = resources[i].metric;
				updateresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				updateresources[i].ospf6lsatype = resources[i].ospf6lsatype;
				updateresources[i].ospfarea = resources[i].ospfarea;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
1085198
public static nsacl_stats[] get(nitro_service service) throws Exception{
		nsacl_stats obj = new nsacl_stats();
		nsacl_stats[] response = (nsacl_stats[])obj.stat_resources(service);
		return response;
	}
269673
public static base_response update(nitro_service client, bridgetable resource) throws Exception {
		bridgetable updateresource = new bridgetable();
		updateresource.bridgeage = resource.bridgeage;
		return updateresource.update_resource(client);
	}
321527
public static base_responses update(nitro_service client, channel resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			channel updateresources[] = new channel[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new channel();
				updateresources[i].id = resources[i].id;
				updateresources[i].state = resources[i].state;
				updateresources[i].mode = resources[i].mode;
				updateresources[i].conndistr = resources[i].conndistr;
				updateresources[i].macdistr = resources[i].macdistr;
				updateresources[i].lamac = resources[i].lamac;
				updateresources[i].speed = resources[i].speed;
				updateresources[i].flowctl = resources[i].flowctl;
				updateresources[i].hamonitor = resources[i].hamonitor;
				updateresources[i].tagall = resources[i].tagall;
				updateresources[i].trunk = resources[i].trunk;
				updateresources[i].ifalias = resources[i].ifalias;
				updateresources[i].throughput = resources[i].throughput;
				updateresources[i].lrminthroughput = resources[i].lrminthroughput;
				updateresources[i].bandwidthhigh = resources[i].bandwidthhigh;
				updateresources[i].bandwidthnormal = resources[i].bandwidthnormal;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
453414
def update(context, resource, **kwargs):
    """"""
    etag = kwargs.pop('etag')
    id = kwargs.pop('id')
    data = utils.sanitize_kwargs(**kwargs)
    uri = '%s/%s/%s' % (context.dci_cs_api, resource, id)
    r = context.session.put(uri, timeout=HTTP_TIMEOUT,
                            headers={'If-match': etag},
                            json=data)
    return r
1216985
public static base_response update(nitro_service client, nsencryptionparams resource) throws Exception {
		nsencryptionparams updateresource = new nsencryptionparams();
		updateresource.method = resource.method;
		updateresource.keyvalue = resource.keyvalue;
		return updateresource.update_resource(client);
	}
536513
public static base_response update(nitro_service client, nsparam resource) throws Exception {
		nsparam updateresource = new nsparam();
		updateresource.httpport = resource.httpport;
		updateresource.maxconn = resource.maxconn;
		updateresource.maxreq = resource.maxreq;
		updateresource.cip = resource.cip;
		updateresource.cipheader = resource.cipheader;
		updateresource.cookieversion = resource.cookieversion;
		updateresource.securecookie = resource.securecookie;
		updateresource.pmtumin = resource.pmtumin;
		updateresource.pmtutimeout = resource.pmtutimeout;
		updateresource.ftpportrange = resource.ftpportrange;
		updateresource.crportrange = resource.crportrange;
		updateresource.timezone = resource.timezone;
		updateresource.grantquotamaxclient = resource.grantquotamaxclient;
		updateresource.exclusivequotamaxclient = resource.exclusivequotamaxclient;
		updateresource.grantquotaspillover = resource.grantquotaspillover;
		updateresource.exclusivequotaspillover = resource.exclusivequotaspillover;
		updateresource.useproxyport = resource.useproxyport;
		updateresource.internaluserlogin = resource.internaluserlogin;
		updateresource.aftpallowrandomsourceport = resource.aftpallowrandomsourceport;
		updateresource.icaports = resource.icaports;
		return updateresource.update_resource(client);
	}
733315
public static base_response update(nitro_service client, nat64 resource) throws Exception {
		nat64 updateresource = new nat64();
		updateresource.name = resource.name;
		updateresource.acl6name = resource.acl6name;
		updateresource.netprofile = resource.netprofile;
		return updateresource.update_resource(client);
	}
46559
public static base_responses update(nitro_service client, gslbsite resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			gslbsite updateresources[] = new gslbsite[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new gslbsite();
				updateresources[i].sitename = resources[i].sitename;
				updateresources[i].metricexchange = resources[i].metricexchange;
				updateresources[i].nwmetricexchange = resources[i].nwmetricexchange;
				updateresources[i].sessionexchange = resources[i].sessionexchange;
				updateresources[i].triggermonitor = resources[i].triggermonitor;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
745522
def update_resource(self, resource):
        ''''''
        index = self.resources.index(resource)
        data = {
            'resources__{index}'.format(index=index): resource
        }
        self.update(**data)
        self.reload()
        post_save.send(self.__class__, document=self)
914029
public static base_responses update(nitro_service client, nstimer resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nstimer updateresources[] = new nstimer[resources.length];
			for (int i=0;i<resources.length;i++){
				updateresources[i] = new nstimer();
				updateresources[i].name = resources[i].name;
				updateresources[i].interval = resources[i].interval;
				updateresources[i].unit = resources[i].unit;
				updateresources[i].comment = resources[i].comment;
			}
			result = update_bulk_request(client, updateresources);
		}
		return result;
	}
917171
public static base_response update(nitro_service client, vlan resource) throws Exception {
		vlan updateresource = new vlan();
		updateresource.id = resource.id;
		updateresource.aliasname = resource.aliasname;
		updateresource.ipv6dynamicrouting = resource.ipv6dynamicrouting;
		return updateresource.update_resource(client);
	}
161993
public static base_response update(nitro_service client, nsconsoleloginprompt resource) throws Exception {
		nsconsoleloginprompt updateresource = new nsconsoleloginprompt();
		updateresource.promptstring = resource.promptstring;
		return updateresource.update_resource(client);
	}
1036598
public static nsacl_stats get(nitro_service service, String aclname) throws Exception{
		nsacl_stats obj = new nsacl_stats();
		obj.set_aclname(aclname);
		nsacl_stats response = (nsacl_stats) obj.stat_resource(service);
		return response;
	}
273490
public static base_responses add(nitro_service client, nsacl resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsacl addresources[] = new nsacl[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsacl();
				addresources[i].aclname = resources[i].aclname;
				addresources[i].aclaction = resources[i].aclaction;
				addresources[i].td = resources[i].td;
				addresources[i].srcip = resources[i].srcip;
				addresources[i].srcipop = resources[i].srcipop;
				addresources[i].srcipval = resources[i].srcipval;
				addresources[i].srcport = resources[i].srcport;
				addresources[i].srcportop = resources[i].srcportop;
				addresources[i].srcportval = resources[i].srcportval;
				addresources[i].destip = resources[i].destip;
				addresources[i].destipop = resources[i].destipop;
				addresources[i].destipval = resources[i].destipval;
				addresources[i].destport = resources[i].destport;
				addresources[i].destportop = resources[i].destportop;
				addresources[i].destportval = resources[i].destportval;
				addresources[i].ttl = resources[i].ttl;
				addresources[i].srcmac = resources[i].srcmac;
				addresources[i].protocol = resources[i].protocol;
				addresources[i].protocolnumber = resources[i].protocolnumber;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].Interface = resources[i].Interface;
				addresources[i].established = resources[i].established;
				addresources[i].icmptype = resources[i].icmptype;
				addresources[i].icmpcode = resources[i].icmpcode;
				addresources[i].priority = resources[i].priority;
				addresources[i].state = resources[i].state;
				addresources[i].logstate = resources[i].logstate;
				addresources[i].ratelimit = resources[i].ratelimit;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}