Пример #1
0
 /**
  * Use this API to fetch all the nsip resources that are configured on netscaler. This uses
  * nsip_args which is a way to provide additional arguments while fetching the resources.
  */
 public static nsip[] get(nitro_service service, nsip_args args) throws Exception {
   nsip obj = new nsip();
   options option = new options();
   option.set_args(nitro_util.object_to_string_withoutquotes(args));
   nsip[] response = (nsip[]) obj.get_resources(service, option);
   return response;
 }
Пример #2
0
 /** Use this API to count the nsip resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   nsip obj = new nsip();
   options option = new options();
   option.set_count(true);
   nsip[] response = (nsip[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
Пример #3
0
 /** Use this API to fetch all the nsip resources that are configured on netscaler. */
 public static nsip[] get(nitro_service service, options option) throws Exception {
   nsip obj = new nsip();
   nsip[] response = (nsip[]) obj.get_resources(service, option);
   return response;
 }