public static base_response add ( nitro_service client , ipsecprofile resource ) throws Exception { ipsecprofile addresource = new ipsecprofile ( ) ; addresource . name = resource . name ; addresource . ikeversion = resource . ikeversion ; addresource . encalgo = resource . encalgo ; addresource . hashalgo = resource . hashalgo ; addresource . lifetime = resource . lifetime ; addresource . psk = resource . psk ; addresource . publickey = resource . publickey ; addresource . privatekey = resource . privatekey ; addresource . peerpublickey = resource . peerpublickey ; addresource . livenesscheckinterval = resource . livenesscheckinterval ; addresource . replaywindowsize = resource . replaywindowsize ; addresource . ikeretryinterval = resource . ikeretryinterval ; addresource . retransmissiontime = resource . retransmissiontime ; return addresource . add_resource ( client ) ; }
Use this API to add ipsecprofile .