示例#1
0
 /**
  * Use this API to fetch filtered set of vpnurl resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static vpnurl[] get_filtered(nitro_service service, String filter) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_filter(filter);
   vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
   return response;
 }
示例#2
0
 /** Use this API to count the vpnurl resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_count(true);
   vpnurl[] response = (vpnurl[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
示例#3
0
 /**
  * Use this API to count the filtered set of vpnurl resources. set the filter parameter values in
  * filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   vpnurl obj = new vpnurl();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   vpnurl[] response = (vpnurl[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
示例#4
0
 /** Use this API to update vpnurl. */
 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);
 }
示例#5
0
 /** Use this API to add vpnurl. */
 public static base_response add(nitro_service client, vpnurl resource) throws Exception {
   vpnurl addresource = new vpnurl();
   addresource.urlname = resource.urlname;
   addresource.linkname = resource.linkname;
   addresource.actualurl = resource.actualurl;
   addresource.clientlessaccess = resource.clientlessaccess;
   addresource.comment = resource.comment;
   return addresource.add_resource(client);
 }
示例#6
0
 /** Use this API to fetch vpnurl resource of given name . */
 public static vpnurl get(nitro_service service, String urlname) throws Exception {
   vpnurl obj = new vpnurl();
   obj.set_urlname(urlname);
   vpnurl response = (vpnurl) obj.get_resource(service);
   return response;
 }
示例#7
0
 /** Use this API to fetch all the vpnurl resources that are configured on netscaler. */
 public static vpnurl[] get(nitro_service service, options option) throws Exception {
   vpnurl obj = new vpnurl();
   vpnurl[] response = (vpnurl[]) obj.get_resources(service, option);
   return response;
 }
示例#8
0
 /**
  * Use this API to unset the properties of vpnurl resource. Properties that need to be unset are
  * specified in args array.
  */
 public static base_response unset(nitro_service client, vpnurl resource, String[] args)
     throws Exception {
   vpnurl unsetresource = new vpnurl();
   unsetresource.urlname = resource.urlname;
   return unsetresource.unset_resource(client, args);
 }
示例#9
0
 /** Use this API to delete vpnurl. */
 public static base_response delete(nitro_service client, vpnurl resource) throws Exception {
   vpnurl deleteresource = new vpnurl();
   deleteresource.urlname = resource.urlname;
   return deleteresource.delete_resource(client);
 }