Use this API to add vpnvserver resources.
180683
public static base_responses add(nitro_service client, vpnvserver resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			vpnvserver addresources[] = new vpnvserver[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new vpnvserver();
				addresources[i].name = resources[i].name;
				addresources[i].servicetype = resources[i].servicetype;
				addresources[i].ipv46 = resources[i].ipv46;
				addresources[i].range = resources[i].range;
				addresources[i].port = resources[i].port;
				addresources[i].state = resources[i].state;
				addresources[i].authentication = resources[i].authentication;
				addresources[i].doublehop = resources[i].doublehop;
				addresources[i].maxaaausers = resources[i].maxaaausers;
				addresources[i].icaonly = resources[i].icaonly;
				addresources[i].downstateflush = resources[i].downstateflush;
				addresources[i].listenpolicy = resources[i].listenpolicy;
				addresources[i].listenpriority = resources[i].listenpriority;
				addresources[i].tcpprofilename = resources[i].tcpprofilename;
				addresources[i].httpprofilename = resources[i].httpprofilename;
				addresources[i].comment = resources[i].comment;
				addresources[i].appflowlog = resources[i].appflowlog;
				addresources[i].icmpvsrresponse = resources[i].icmpvsrresponse;
				addresources[i].netprofile = resources[i].netprofile;
				addresources[i].cginfrahomepageredirect = resources[i].cginfrahomepageredirect;
				addresources[i].maxloginattempts = resources[i].maxloginattempts;
				addresources[i].failedlogintimeout = resources[i].failedlogintimeout;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
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;
	}
741535
public static base_response add(nitro_service client, vpnformssoaction resource) throws Exception {
		vpnformssoaction addresource = new vpnformssoaction();
		addresource.name = resource.name;
		addresource.actionurl = resource.actionurl;
		addresource.userfield = resource.userfield;
		addresource.passwdfield = resource.passwdfield;
		addresource.ssosuccessrule = resource.ssosuccessrule;
		addresource.namevaluepair = resource.namevaluepair;
		addresource.responsesize = resource.responsesize;
		addresource.nvtype = resource.nvtype;
		addresource.submitmethod = resource.submitmethod;
		return addresource.add_resource(client);
	}
812069
def vhost_add(cls, resource, params):
        
        try:
            oper = cls.call(
                'hosting.rproxy.vhost.create', cls.usable_id(resource), params)
            cls.echo('Adding your virtual host (%s) into %s' %
                     (params['vhost'], resource))
            cls.display_progress(oper)
            cls.echo('Your virtual host habe been added')
            return oper
        except Exception as err:
            if err.code == 580142:
                dc = cls.info(resource)
                dns_entry = cls.call('hosting.rproxy.vhost.get_dns_entries',
                                     {'datacenter': dc['datacenter']['id'],
                                      'vhost': params['vhost']})
                txt_record = "%s 3600 IN TXT \"%s=%s\"" % (dns_entry['key'],
                                                           dns_entry['key'],
                                                           dns_entry['txt'])

                cname_record = "%s 3600 IN CNAME %s" % (dns_entry['key'],
                                                        dns_entry['cname'])

                cls.echo('The domain don\'t use Gandi DNS or you have not'
                         ' sufficient right to alter the zone file. '
                         'Edit your zone file adding this TXT and CNAME '
                         'record and try again :')
                cls.echo(txt_record)
                cls.echo(cname_record)
                cls.echo('\nOr add a file containing %s at :\n'
                         'http://%s/%s.txt\n' % (dns_entry['txt'],
                                                 dns_entry['domain'],
                                                 dns_entry['txt']))

            else:
                cls.echo(err)
333204
public static base_response add(nitro_service client, vlan resource) throws Exception {
		vlan addresource = new vlan();
		addresource.id = resource.id;
		addresource.aliasname = resource.aliasname;
		addresource.ipv6dynamicrouting = resource.ipv6dynamicrouting;
		return addresource.add_resource(client);
	}
876044
def addServerResource(self, pluginSubPath: bytes, resource: BasicResource) -> None:
        
        pluginSubPath = pluginSubPath.strip(b'/')
        self.__rootServerResource.putChild(pluginSubPath, resource)
80789
public static snmp_view add(nitro_service client, snmp_view resource) throws Exception
	{
		resource.validate("add");
		return ((snmp_view[]) resource.perform_operation(client, "add"))[0];
	}
254905
public static base_responses add(nitro_service client, nspbr6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nspbr6 addresources[] = new nspbr6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nspbr6();
				addresources[i].name = resources[i].name;
				addresources[i].td = resources[i].td;
				addresources[i].action = resources[i].action;
				addresources[i].srcipv6 = resources[i].srcipv6;
				addresources[i].srcipop = resources[i].srcipop;
				addresources[i].srcipv6val = resources[i].srcipv6val;
				addresources[i].srcport = resources[i].srcport;
				addresources[i].srcportop = resources[i].srcportop;
				addresources[i].srcportval = resources[i].srcportval;
				addresources[i].destipv6 = resources[i].destipv6;
				addresources[i].destipop = resources[i].destipop;
				addresources[i].destipv6val = resources[i].destipv6val;
				addresources[i].destport = resources[i].destport;
				addresources[i].destportop = resources[i].destportop;
				addresources[i].destportval = resources[i].destportval;
				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].state = resources[i].state;
				addresources[i].msr = resources[i].msr;
				addresources[i].monitor = resources[i].monitor;
				addresources[i].nexthop = resources[i].nexthop;
				addresources[i].nexthopval = resources[i].nexthopval;
				addresources[i].nexthopvlan = resources[i].nexthopvlan;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
645957
public static base_response add(nitro_service client, dnsview resource) throws Exception {
		dnsview addresource = new dnsview();
		addresource.viewname = resource.viewname;
		return addresource.add_resource(client);
	}
1142467
public static base_responses add(nitro_service client, dnssuffix resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnssuffix addresources[] = new dnssuffix[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnssuffix();
				addresources[i].Dnssuffix = resources[i].Dnssuffix;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
601083
def addServer(self, normalPort, sslPort, f, name):
        
        tcp = internet.TCPServer(normalPort, f)
        tcp.setName(name)
        self.servers.append(tcp)
        if sslPort is not None:
            ssl = internet.SSLServer(sslPort, f, contextFactory=self.sslfac)
            ssl.setName(name+'s')
            self.servers.append(ssl)
775131
public static base_response add(nitro_service client, dnsnsrec resource) throws Exception {
		dnsnsrec addresource = new dnsnsrec();
		addresource.domain = resource.domain;
		addresource.nameserver = resource.nameserver;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
959283
public static base_response add(nitro_service client, arp resource) throws Exception {
		arp addresource = new arp();
		addresource.ipaddress = resource.ipaddress;
		addresource.td = resource.td;
		addresource.mac = resource.mac;
		addresource.ifnum = resource.ifnum;
		addresource.ownernode = resource.ownernode;
		return addresource.add_resource(client);
	}
1148863
public static base_response add(nitro_service client, dnspolicylabel resource) throws Exception {
		dnspolicylabel addresource = new dnspolicylabel();
		addresource.labelname = resource.labelname;
		addresource.transform = resource.transform;
		return addresource.add_resource(client);
	}
980434
public static base_response add(nitro_service client, nspbr resource) throws Exception {
		nspbr addresource = new nspbr();
		addresource.name = resource.name;
		addresource.action = resource.action;
		addresource.td = resource.td;
		addresource.srcip = resource.srcip;
		addresource.srcipop = resource.srcipop;
		addresource.srcipval = resource.srcipval;
		addresource.srcport = resource.srcport;
		addresource.srcportop = resource.srcportop;
		addresource.srcportval = resource.srcportval;
		addresource.destip = resource.destip;
		addresource.destipop = resource.destipop;
		addresource.destipval = resource.destipval;
		addresource.destport = resource.destport;
		addresource.destportop = resource.destportop;
		addresource.destportval = resource.destportval;
		addresource.nexthop = resource.nexthop;
		addresource.nexthopval = resource.nexthopval;
		addresource.iptunnel = resource.iptunnel;
		addresource.iptunnelname = resource.iptunnelname;
		addresource.srcmac = resource.srcmac;
		addresource.protocol = resource.protocol;
		addresource.protocolnumber = resource.protocolnumber;
		addresource.vlan = resource.vlan;
		addresource.Interface = resource.Interface;
		addresource.priority = resource.priority;
		addresource.msr = resource.msr;
		addresource.monitor = resource.monitor;
		addresource.state = resource.state;
		return addresource.add_resource(client);
	}
898039
public static base_responses add(nitro_service client, nsip6 resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			nsip6 addresources[] = new nsip6[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new nsip6();
				addresources[i].ipv6address = resources[i].ipv6address;
				addresources[i].scope = resources[i].scope;
				addresources[i].type = resources[i].type;
				addresources[i].vlan = resources[i].vlan;
				addresources[i].nd = resources[i].nd;
				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].hostroute = resources[i].hostroute;
				addresources[i].ip6hostrtgw = resources[i].ip6hostrtgw;
				addresources[i].metric = resources[i].metric;
				addresources[i].vserverrhilevel = resources[i].vserverrhilevel;
				addresources[i].ospf6lsatype = resources[i].ospf6lsatype;
				addresources[i].ospfarea = resources[i].ospfarea;
				addresources[i].state = resources[i].state;
				addresources[i].map = resources[i].map;
				addresources[i].ownernode = resources[i].ownernode;
				addresources[i].td = resources[i].td;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
250511
public static vpnvserver_binding get(nitro_service service, String name) throws Exception{
		vpnvserver_binding obj = new vpnvserver_binding();
		obj.set_name(name);
		vpnvserver_binding response = (vpnvserver_binding) obj.get_resource(service);
		return response;
	}