Exemplo n.º 1
0
 /** Use this API to count the nssimpleacl resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   nssimpleacl obj = new nssimpleacl();
   options option = new options();
   option.set_count(true);
   nssimpleacl[] response = (nssimpleacl[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
Exemplo n.º 2
0
 /** Use this API to fetch all the nssimpleacl resources that are configured on netscaler. */
 public static nssimpleacl[] get(nitro_service service, options option) throws Exception {
   nssimpleacl obj = new nssimpleacl();
   nssimpleacl[] response = (nssimpleacl[]) obj.get_resources(service, option);
   return response;
 }