Example #1
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;
 }
Example #2
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;
 }