Use this API to add vpnnexthopserver resources.
548792
public static base_responses add(nitro_service client, vpnnexthopserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			vpnnexthopserver addresources[] = new vpnnexthopserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new vpnnexthopserver();
				addresources[i].name = resources[i].name;
				addresources[i].nexthopip = resources[i].nexthopip;
				addresources[i].nexthopport = resources[i].nexthopport;
				addresources[i].secure = resources[i].secure;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1152739
public static base_response add(nitro_service client, vpnsessionpolicy resource) throws Exception {
		vpnsessionpolicy addresource = new vpnsessionpolicy();
		addresource.name = resource.name;
		addresource.rule = resource.rule;
		addresource.action = resource.action;
		return addresource.add_resource(client);
	}
101134
def add(gandi, resource, vhost, zone_alter, backend, port, ssl, private_key,
        poll_cert):
    
    result = []
    if backend:
        backends = backend
        for backend in backends:
            # Check if a port is set for each backend, else set a default port
            if 'port' not in backend:
                if not port:
                    backend['port'] = click.prompt('Please set a port for '
                                                   'backends. If you want to '
                                                   ' different port for '
                                                   'each backend, use `-b '
                                                   'ip:port`', type=int)
                else:
                    backend['port'] = port
            result = gandi.webacc.backend_add(resource, backend)

    if vhost:
        if not gandi.hostedcert.activate_ssl(vhost, ssl, private_key,
                                             poll_cert):
            return
        vhosts = vhost
        for vhost in vhosts:
            params = {'vhost': vhost}
            if zone_alter:
                params['zone_alter'] = zone_alter
            result = gandi.webacc.vhost_add(resource, params)
    return result
1270903
public static base_responses add(nitro_service client, route6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			route6 addresources[] = new route6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new route6();
				addresources[i].network = resources[i].network;
				addresources[i].gateway = resources[i].gateway;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].weight = resources[i].weight;
				addresources[i].distance = resources[i].distance;
				addresources[i].cost = resources[i].cost;
				addresources[i].advertise = resources[i].advertise;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
1260834
async def AddPendingResources(self, addcharmwithauthorization, entity, resources):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='Resources',
                   request='AddPendingResources',
                   version=1,
                   params=_params)
        _params['AddCharmWithAuthorization'] = addcharmwithauthorization
        _params['Entity'] = entity
        _params['Resources'] = resources
        reply = await self.rpc(msg)
        return reply
1359901
public static base_response add(nitro_service client, vpnvserver resource) throws Exception {
		vpnvserver addresource = new vpnvserver();
		addresource.name = resource.name;
		addresource.servicetype = resource.servicetype;
		addresource.ipv46 = resource.ipv46;
		addresource.range = resource.range;
		addresource.port = resource.port;
		addresource.state = resource.state;
		addresource.authentication = resource.authentication;
		addresource.doublehop = resource.doublehop;
		addresource.maxaaausers = resource.maxaaausers;
		addresource.icaonly = resource.icaonly;
		addresource.downstateflush = resource.downstateflush;
		addresource.listenpolicy = resource.listenpolicy;
		addresource.listenpriority = resource.listenpriority;
		addresource.tcpprofilename = resource.tcpprofilename;
		addresource.httpprofilename = resource.httpprofilename;
		addresource.comment = resource.comment;
		addresource.appflowlog = resource.appflowlog;
		addresource.icmpvsrresponse = resource.icmpvsrresponse;
		addresource.netprofile = resource.netprofile;
		addresource.cginfrahomepageredirect = resource.cginfrahomepageredirect;
		addresource.maxloginattempts = resource.maxloginattempts;
		addresource.failedlogintimeout = resource.failedlogintimeout;
		return addresource.add_resource(client);
	}
463822
def add_routes(app):
    """"""
    for (prefix, routes) in API_SECTIONS:
        api = Api(app, prefix=prefix)
        for ((pattern, resource, *args), kwargs) in routes:
            kwargs.setdefault('strict_slashes', False)
            api.add_resource(resource, pattern, *args, **kwargs)
136193
public static base_response add(nitro_service client, vpnclientlessaccessprofile resource) throws Exception {
		vpnclientlessaccessprofile addresource = new vpnclientlessaccessprofile();
		addresource.profilename = resource.profilename;
		return addresource.add_resource(client);
	}
546704
public static void addSipSubcontext(Context envCtx) {
		try {
			envCtx.createSubcontext(SIP_SUBCONTEXT);
		} catch (NamingException e) {
			logger.error(sm.getString("naming.bindFailed", e));
		}
	}
920802
public static base_responses add(nitro_service client, onlinkipv6prefix resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			onlinkipv6prefix addresources[] = new onlinkipv6prefix[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new onlinkipv6prefix();
				addresources[i].ipv6prefix = resources[i].ipv6prefix;
				addresources[i].onlinkprefix = resources[i].onlinkprefix;
				addresources[i].autonomusprefix = resources[i].autonomusprefix;
				addresources[i].depricateprefix = resources[i].depricateprefix;
				addresources[i].decrementprefixlifetimes = resources[i].decrementprefixlifetimes;
				addresources[i].prefixvalidelifetime = resources[i].prefixvalidelifetime;
				addresources[i].prefixpreferredlifetime = resources[i].prefixpreferredlifetime;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
168492
def add(self, resource, replace=False):
        """"""
        uri = resource.uri
        if (uri in self and not replace):
            raise ResourceListDupeError(
                "Attempt to add resource already in resource_list")
        self[uri] = resource
552964
public static base_response add(nitro_service client, lbroute6 resource) throws Exception {
		lbroute6 addresource = new lbroute6();
		addresource.network = resource.network;
		addresource.gatewayname = resource.gatewayname;
		return addresource.add_resource(client);
	}
939813
public static base_response add(nitro_service client, dnssrvrec resource) throws Exception {
		dnssrvrec addresource = new dnssrvrec();
		addresource.domain = resource.domain;
		addresource.target = resource.target;
		addresource.priority = resource.priority;
		addresource.weight = resource.weight;
		addresource.port = resource.port;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
112597
public static base_responses add(nitro_service client, dnsview resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnsview addresources[] = new dnsview[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnsview();
				addresources[i].viewname = resources[i].viewname;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
968392
public static base_responses add(nitro_service client, nsip resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip addresources[] = new nsip[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip();
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].type = resources[i].type;
				addresources[i].arp = resources[i].arp;
				addresources[i].icmp = resources[i].icmp;
				addresources[i].vserver = resources[i].vserver;
				addresources[i].telnet = resources[i].telnet;
				addresources[i].ftp = resources[i].ftp;
				addresources[i].gui = resources[i].gui;
				addresources[i].ssh = resources[i].ssh;
				addresources[i].snmp = resources[i].snmp;
				addresources[i].mgmtaccess = resources[i].mgmtaccess;
				addresources[i].restrictaccess = resources[i].restrictaccess;
				addresources[i].dynamicrouting = resources[i].dynamicrouting;
				addresources[i].ospf = resources[i].ospf;
				addresources[i].bgp = resources[i].bgp;
				addresources[i].rip = resources[i].rip;
				addresources[i].hostroute = resources[i].hostroute;
				addresources[i].hostrtgw = resources[i].hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospflsatype = resources[i].ospflsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].vrid = resources[i].vrid;
				addresources[i].icmpresponse = resources[i].icmpresponse;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].arpresponse = resources[i].arpresponse;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
850106
def add_virtualip(self, lb, vip):
        """"""
        resp, body = self.api.method_post("/loadbalancers/%s/virtualips" % lb.id,
                body=vip.to_dict())
        return resp, body
890498
public static base_responses add(nitro_service client, nspbr resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr addresources[] = new nspbr[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nspbr();
				addresources[i].name = resources[i].name;
				addresources[i].action = resources[i].action;
				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].nexthop = resources[i].nexthop;
				addresources[i].nexthopval = resources[i].nexthopval;
				addresources[i].iptunnel = resources[i].iptunnel;
				addresources[i].iptunnelname = resources[i].iptunnelname;
				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].priority = resources[i].priority;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].state = resources[i].state;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}