Use this API to add vpnsessionaction.
972579
public static base_response add(nitro_service client, vpnsessionaction resource) throws Exception {
		vpnsessionaction addresource = new vpnsessionaction();
		addresource.name = resource.name;
		addresource.httpport = resource.httpport;
		addresource.winsip = resource.winsip;
		addresource.dnsvservername = resource.dnsvservername;
		addresource.splitdns = resource.splitdns;
		addresource.sesstimeout = resource.sesstimeout;
		addresource.clientsecurity = resource.clientsecurity;
		addresource.clientsecuritygroup = resource.clientsecuritygroup;
		addresource.clientsecuritymessage = resource.clientsecuritymessage;
		addresource.clientsecuritylog = resource.clientsecuritylog;
		addresource.splittunnel = resource.splittunnel;
		addresource.locallanaccess = resource.locallanaccess;
		addresource.rfc1918 = resource.rfc1918;
		addresource.spoofiip = resource.spoofiip;
		addresource.killconnections = resource.killconnections;
		addresource.transparentinterception = resource.transparentinterception;
		addresource.windowsclienttype = resource.windowsclienttype;
		addresource.defaultauthorizationaction = resource.defaultauthorizationaction;
		addresource.authorizationgroup = resource.authorizationgroup;
		addresource.clientidletimeout = resource.clientidletimeout;
		addresource.proxy = resource.proxy;
		addresource.allprotocolproxy = resource.allprotocolproxy;
		addresource.httpproxy = resource.httpproxy;
		addresource.ftpproxy = resource.ftpproxy;
		addresource.socksproxy = resource.socksproxy;
		addresource.gopherproxy = resource.gopherproxy;
		addresource.sslproxy = resource.sslproxy;
		addresource.proxyexception = resource.proxyexception;
		addresource.proxylocalbypass = resource.proxylocalbypass;
		addresource.clientcleanupprompt = resource.clientcleanupprompt;
		addresource.forcecleanup = resource.forcecleanup;
		addresource.clientoptions = resource.clientoptions;
		addresource.clientconfiguration = resource.clientconfiguration;
		addresource.sso = resource.sso;
		addresource.ssocredential = resource.ssocredential;
		addresource.windowsautologon = resource.windowsautologon;
		addresource.usemip = resource.usemip;
		addresource.useiip = resource.useiip;
		addresource.clientdebug = resource.clientdebug;
		addresource.loginscript = resource.loginscript;
		addresource.logoutscript = resource.logoutscript;
		addresource.homepage = resource.homepage;
		addresource.icaproxy = resource.icaproxy;
		addresource.wihome = resource.wihome;
		addresource.citrixreceiverhome = resource.citrixreceiverhome;
		addresource.wiportalmode = resource.wiportalmode;
		addresource.clientchoices = resource.clientchoices;
		addresource.epaclienttype = resource.epaclienttype;
		addresource.iipdnssuffix = resource.iipdnssuffix;
		addresource.forcedtimeout = resource.forcedtimeout;
		addresource.forcedtimeoutwarning = resource.forcedtimeoutwarning;
		addresource.ntdomain = resource.ntdomain;
		addresource.clientlessvpnmode = resource.clientlessvpnmode;
		addresource.emailhome = resource.emailhome;
		addresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding;
		addresource.clientlesspersistentcookie = resource.clientlesspersistentcookie;
		addresource.allowedlogingroups = resource.allowedlogingroups;
		addresource.securebrowse = resource.securebrowse;
		addresource.storefronturl = resource.storefronturl;
		addresource.kcdaccount = resource.kcdaccount;
		return addresource.add_resource(client);
	}
639707
def add_used_entity(self, entity_uri):
        
        entity_o = URIRef(entity_uri)
        self.prov_g.add((entity_o, RDF.type, self.prov.Entity))
        self.prov_g.add((self.activity, self.prov.used, entity_o))
1142738
public function addAction() {
        $name = $this->ask('Enter the <underline>profile name</underline> to add', 'local');
        if (!ConfigService::createEnvironment($name)) {
            $this->error($name . ' is already exists');
        }

        $this->notify('Environment created – ' . $name);
    }
1080081
def add(self, method_class, action, version=None):
        
        by_version = self._by_action.setdefault(action, {})
        if version in by_version:
            raise RuntimeError("A method was already registered for action"
                               " %s in version %s" % (action, version))
        by_version[version] = method_class
322932
public static base_response add(nitro_service client, dnsaction64 resource) throws Exception {
		dnsaction64 addresource = new dnsaction64();
		addresource.actionname = resource.actionname;
		addresource.prefix = resource.prefix;
		addresource.mappedrule = resource.mappedrule;
		addresource.excluderule = resource.excluderule;
		return addresource.add_resource(client);
	}
489958
public static base_response update(nitro_service client, vpnurl resource) throws Exception {
		vpnurl updateresource = new vpnurl();
		updateresource.urlname = resource.urlname;
		updateresource.linkname = resource.linkname;
		updateresource.actualurl = resource.actualurl;
		updateresource.clientlessaccess = resource.clientlessaccess;
		updateresource.comment = resource.comment;
		return updateresource.update_resource(client);
	}
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);
	}
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);
	}
891312
public static vpnsessionpolicy_binding get(nitro_service service, String name) throws Exception{
		vpnsessionpolicy_binding obj = new vpnsessionpolicy_binding();
		obj.set_name(name);
		vpnsessionpolicy_binding response = (vpnsessionpolicy_binding) obj.get_resource(service);
		return response;
	}
158535
public function addRelatedPictureAction()
    {
        // Check current user authorization
        if (null !== $response = $this->checkAuth($this->resourceCode, array(), AccessManager::UPDATE)) {
            return $response;
        }

        return $this->redirectToEditionTemplate();
    }
188537
protected void updateTransientActions() {
        Vector<Action> ta = new Vector<>();

        for (LabelAtomProperty p : properties)
            ta.addAll(p.getActions(this));

        transientActions = ta;
    }
1104675
def _add_pending_action(self, p_action, p_size):
        
        def generate_callback():
            def callback(*args):
                self.resolve_action(p_action, p_size)
                self.keystate = None

            return callback

        urwid.emit_signal(self, 'add_pending_action', generate_callback())
621694
public function addAction($filterName, $filterCall, $prio, $numVars)
    {
        $this->actions[] = $this->add($filterName, $filterCall, $prio, $numVars);

        return $this;
    }
1259094
public static base_response add(nitro_service client, filteraction resource) throws Exception {
		filteraction addresource = new filteraction();
		addresource.name = resource.name;
		addresource.qual = resource.qual;
		addresource.servicename = resource.servicename;
		addresource.value = resource.value;
		addresource.respcode = resource.respcode;
		addresource.page = resource.page;
		return addresource.add_resource(client);
	}
388657
public static base_response update(nitro_service client, vpnsessionaction resource) throws Exception {
		vpnsessionaction updateresource = new vpnsessionaction();
		updateresource.name = resource.name;
		updateresource.httpport = resource.httpport;
		updateresource.winsip = resource.winsip;
		updateresource.dnsvservername = resource.dnsvservername;
		updateresource.splitdns = resource.splitdns;
		updateresource.sesstimeout = resource.sesstimeout;
		updateresource.clientsecurity = resource.clientsecurity;
		updateresource.clientsecuritygroup = resource.clientsecuritygroup;
		updateresource.clientsecuritymessage = resource.clientsecuritymessage;
		updateresource.clientsecuritylog = resource.clientsecuritylog;
		updateresource.splittunnel = resource.splittunnel;
		updateresource.locallanaccess = resource.locallanaccess;
		updateresource.rfc1918 = resource.rfc1918;
		updateresource.spoofiip = resource.spoofiip;
		updateresource.killconnections = resource.killconnections;
		updateresource.transparentinterception = resource.transparentinterception;
		updateresource.windowsclienttype = resource.windowsclienttype;
		updateresource.defaultauthorizationaction = resource.defaultauthorizationaction;
		updateresource.authorizationgroup = resource.authorizationgroup;
		updateresource.clientidletimeout = resource.clientidletimeout;
		updateresource.proxy = resource.proxy;
		updateresource.allprotocolproxy = resource.allprotocolproxy;
		updateresource.httpproxy = resource.httpproxy;
		updateresource.ftpproxy = resource.ftpproxy;
		updateresource.socksproxy = resource.socksproxy;
		updateresource.gopherproxy = resource.gopherproxy;
		updateresource.sslproxy = resource.sslproxy;
		updateresource.proxyexception = resource.proxyexception;
		updateresource.proxylocalbypass = resource.proxylocalbypass;
		updateresource.clientcleanupprompt = resource.clientcleanupprompt;
		updateresource.forcecleanup = resource.forcecleanup;
		updateresource.clientoptions = resource.clientoptions;
		updateresource.clientconfiguration = resource.clientconfiguration;
		updateresource.sso = resource.sso;
		updateresource.ssocredential = resource.ssocredential;
		updateresource.windowsautologon = resource.windowsautologon;
		updateresource.usemip = resource.usemip;
		updateresource.useiip = resource.useiip;
		updateresource.clientdebug = resource.clientdebug;
		updateresource.loginscript = resource.loginscript;
		updateresource.logoutscript = resource.logoutscript;
		updateresource.homepage = resource.homepage;
		updateresource.icaproxy = resource.icaproxy;
		updateresource.wihome = resource.wihome;
		updateresource.citrixreceiverhome = resource.citrixreceiverhome;
		updateresource.wiportalmode = resource.wiportalmode;
		updateresource.clientchoices = resource.clientchoices;
		updateresource.epaclienttype = resource.epaclienttype;
		updateresource.iipdnssuffix = resource.iipdnssuffix;
		updateresource.forcedtimeout = resource.forcedtimeout;
		updateresource.forcedtimeoutwarning = resource.forcedtimeoutwarning;
		updateresource.ntdomain = resource.ntdomain;
		updateresource.clientlessvpnmode = resource.clientlessvpnmode;
		updateresource.emailhome = resource.emailhome;
		updateresource.clientlessmodeurlencoding = resource.clientlessmodeurlencoding;
		updateresource.clientlesspersistentcookie = resource.clientlesspersistentcookie;
		updateresource.allowedlogingroups = resource.allowedlogingroups;
		updateresource.securebrowse = resource.securebrowse;
		updateresource.storefronturl = resource.storefronturl;
		updateresource.kcdaccount = resource.kcdaccount;
		return updateresource.update_resource(client);
	}
809850
public static base_response add(nitro_service client, vpntrafficaction resource) throws Exception {
		vpntrafficaction addresource = new vpntrafficaction();
		addresource.name = resource.name;
		addresource.qual = resource.qual;
		addresource.apptimeout = resource.apptimeout;
		addresource.sso = resource.sso;
		addresource.formssoaction = resource.formssoaction;
		addresource.fta = resource.fta;
		addresource.wanscaler = resource.wanscaler;
		addresource.kcdaccount = resource.kcdaccount;
		addresource.samlssoprofile = resource.samlssoprofile;
		return addresource.add_resource(client);
	}
160363
def add_user_actions(self, actions=(), version='v1.0'):
        
        return self._post(
            'user_actions/add',
            params={'version': version},
            json={'actions': actions}
        )