Beispiel #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;
 }
Beispiel #2
0
 /**
  * Use this API to fetch all the aaauser resources that are configured on netscaler. This uses
  * aaauser_args which is a way to provide additional arguments while fetching the resources.
  */
 public static aaauser[] get(nitro_service service, aaauser_args args) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_args(nitro_util.object_to_string_withoutquotes(args));
   aaauser[] response = (aaauser[]) obj.get_resources(service, option);
   return response;
 }
Beispiel #3
0
 /** Use this API to fetch a nsip resources. */
 public static nsip[] get(nitro_service service, nsip obj[]) throws Exception {
   if (obj != null && obj.length > 0) {
     nsip response[] = new nsip[obj.length];
     for (int i = 0; i < obj.length; i++) {
       options option = new options();
       option.set_args(nitro_util.object_to_string_withoutquotes(obj[i]));
       response[i] = (nsip) obj[i].get_resource(service, option);
     }
     return response;
   }
   return null;
 }
Beispiel #4
0
 /** Use this API to fetch a nsip resource. */
 public static nsip get(nitro_service service, nsip obj) throws Exception {
   options option = new options();
   option.set_args(nitro_util.object_to_string_withoutquotes(obj));
   nsip response = (nsip) obj.get_resource(service, option);
   return response;
 }