예제 #1
0
파일: vpnurl.java 프로젝트: netscaler/nitro
 /**
  * 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
파일: nsip.java 프로젝트: netscaler/nitro
 /**
  * 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;
 }
예제 #3
0
파일: dnskey.java 프로젝트: netscaler/nitro
 /**
  * Use this API to fetch filtered set of dnskey resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static dnskey[] get_filtered(nitro_service service, String filter) throws Exception {
   dnskey obj = new dnskey();
   options option = new options();
   option.set_filter(filter);
   dnskey[] response = (dnskey[]) obj.getfiltered(service, option);
   return response;
 }
예제 #4
0
파일: nsip.java 프로젝트: netscaler/nitro
 /**
  * Use this API to fetch filtered set of nsip resources. set the filter parameter values in
  * filtervalue object.
  */
 public static nsip[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   nsip obj = new nsip();
   options option = new options();
   option.set_filter(filter);
   nsip[] response = (nsip[]) obj.getfiltered(service, option);
   return response;
 }
예제 #5
0
 /**
  * Use this API to fetch filtered set of nssimpleacl resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static nssimpleacl[] get_filtered(nitro_service service, String filter) throws Exception {
   nssimpleacl obj = new nssimpleacl();
   options option = new options();
   option.set_filter(filter);
   nssimpleacl[] response = (nssimpleacl[]) obj.getfiltered(service, option);
   return response;
 }
예제 #6
0
 /**
  * Use this API to fetch filtered set of aaauser resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static aaauser[] get_filtered(nitro_service service, String filter) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_filter(filter);
   aaauser[] response = (aaauser[]) obj.getfiltered(service, option);
   return response;
 }
예제 #7
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;
 }
예제 #8
0
 /**
  * Use this API to fetch filtered set of sslwrapkey resources. set the filter parameter values in
  * filtervalue object.
  */
 public static sslwrapkey[] get_filtered(nitro_service service, filtervalue[] filter)
     throws Exception {
   sslwrapkey obj = new sslwrapkey();
   options option = new options();
   option.set_filter(filter);
   sslwrapkey[] response = (sslwrapkey[]) obj.getfiltered(service, option);
   return response;
 }
예제 #9
0
 /**
  * Use this API to fetch filtered set of auditnslogpolicy resources. set the filter parameter
  * values in filtervalue object.
  */
 public static auditnslogpolicy[] get_filtered(nitro_service service, filtervalue[] filter)
     throws Exception {
   auditnslogpolicy obj = new auditnslogpolicy();
   options option = new options();
   option.set_filter(filter);
   auditnslogpolicy[] response = (auditnslogpolicy[]) obj.getfiltered(service, option);
   return response;
 }
 /**
  * Use this API to fetch filtered set of vpnglobal_vpntrafficpolicy_binding resources. set the
  * filter parameter values in filtervalue object.
  */
 public static vpnglobal_vpntrafficpolicy_binding[] get_filtered(
     nitro_service service, filtervalue[] filter) throws Exception {
   vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding();
   options option = new options();
   option.set_filter(filter);
   vpnglobal_vpntrafficpolicy_binding[] response =
       (vpnglobal_vpntrafficpolicy_binding[]) obj.getfiltered(service, option);
   return response;
 }
 /**
  * Use this API to fetch filtered set of appflowpolicy_lbvserver_binding resources. set the filter
  * parameter values in filtervalue object.
  */
 public static appflowpolicy_lbvserver_binding[] get_filtered(
     nitro_service service, String name, filtervalue[] filter) throws Exception {
   appflowpolicy_lbvserver_binding obj = new appflowpolicy_lbvserver_binding();
   obj.set_name(name);
   options option = new options();
   option.set_filter(filter);
   appflowpolicy_lbvserver_binding[] response =
       (appflowpolicy_lbvserver_binding[]) obj.getfiltered(service, option);
   return response;
 }
 /**
  * Use this API to fetch filtered set of aaauser_vpntrafficpolicy_binding resources. set the
  * filter parameter values in filtervalue object.
  */
 public static aaauser_vpntrafficpolicy_binding[] get_filtered(
     nitro_service service, String username, filtervalue[] filter) throws Exception {
   aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
   obj.set_username(username);
   options option = new options();
   option.set_filter(filter);
   aaauser_vpntrafficpolicy_binding[] response =
       (aaauser_vpntrafficpolicy_binding[]) obj.getfiltered(service, option);
   return response;
 }
예제 #13
0
파일: dnskey.java 프로젝트: netscaler/nitro
 /** Use this API to count the dnskey resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   dnskey obj = new dnskey();
   options option = new options();
   option.set_count(true);
   dnskey[] response = (dnskey[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
예제 #14
0
 /** Use this API to count the auditnslogpolicy resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   auditnslogpolicy obj = new auditnslogpolicy();
   options option = new options();
   option.set_count(true);
   auditnslogpolicy[] response = (auditnslogpolicy[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
예제 #15
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;
 }
 /**
  * Use this API to fetch filtered set of vpnvserver_vpnclientlessaccesspolicy_binding resources.
  * set the filter parameter values in filtervalue object.
  */
 public static vpnvserver_vpnclientlessaccesspolicy_binding[] get_filtered(
     nitro_service service, String name, filtervalue[] filter) throws Exception {
   vpnvserver_vpnclientlessaccesspolicy_binding obj =
       new vpnvserver_vpnclientlessaccesspolicy_binding();
   obj.set_name(name);
   options option = new options();
   option.set_filter(filter);
   vpnvserver_vpnclientlessaccesspolicy_binding[] response =
       (vpnvserver_vpnclientlessaccesspolicy_binding[]) obj.getfiltered(service, option);
   return response;
 }
 /** Use this API to count vpnglobal_vpntrafficpolicy_binding resources configued on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding();
   options option = new options();
   option.set_count(true);
   vpnglobal_vpntrafficpolicy_binding response[] =
       (vpnglobal_vpntrafficpolicy_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
예제 #18
0
 /**
  * Use this API to count filtered the set of nssimpleacl resources. filter string should be in
  * JSON format.eg: "port:80,servicetype:HTTP".
  */
 public static long count_filtered(nitro_service service, String filter) throws Exception {
   nssimpleacl obj = new nssimpleacl();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   nssimpleacl[] response = (nssimpleacl[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
예제 #19
0
 /**
  * Use this API to count filtered the set of sslwrapkey resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static long count_filtered(nitro_service service, String filter) throws Exception {
   sslwrapkey obj = new sslwrapkey();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   sslwrapkey[] response = (sslwrapkey[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to fetch filtered set of appfwprofile_trustedlearningclients_binding resources.
  * set the filter parameter values in filtervalue object.
  */
 public static appfwprofile_trustedlearningclients_binding[] get_filtered(
     nitro_service service, String name, filtervalue[] filter) throws Exception {
   appfwprofile_trustedlearningclients_binding obj =
       new appfwprofile_trustedlearningclients_binding();
   obj.set_name(name);
   options option = new options();
   option.set_filter(filter);
   appfwprofile_trustedlearningclients_binding[] response =
       (appfwprofile_trustedlearningclients_binding[]) obj.getfiltered(service, option);
   return response;
 }
 /**
  * Use this API to fetch filtered set of authorizationpolicy_authorizationpolicylabel_binding
  * resources. set the filter parameter values in filtervalue object.
  */
 public static authorizationpolicy_authorizationpolicylabel_binding[] get_filtered(
     nitro_service service, String name, filtervalue[] filter) throws Exception {
   authorizationpolicy_authorizationpolicylabel_binding obj =
       new authorizationpolicy_authorizationpolicylabel_binding();
   obj.set_name(name);
   options option = new options();
   option.set_filter(filter);
   authorizationpolicy_authorizationpolicylabel_binding[] response =
       (authorizationpolicy_authorizationpolicylabel_binding[]) obj.getfiltered(service, option);
   return response;
 }
예제 #22
0
파일: dnskey.java 프로젝트: netscaler/nitro
 /**
  * Use this API to count the filtered set of dnskey resources. set the filter parameter values in
  * filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   dnskey obj = new dnskey();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   dnskey[] response = (dnskey[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to count the filtered set of vpnglobal_vpntrafficpolicy_binding resources. set the
  * filter parameter values in filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   vpnglobal_vpntrafficpolicy_binding obj = new vpnglobal_vpntrafficpolicy_binding();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   vpnglobal_vpntrafficpolicy_binding[] response =
       (vpnglobal_vpntrafficpolicy_binding[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
예제 #24
0
파일: nsip.java 프로젝트: netscaler/nitro
 /** 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;
 }
 /** Use this API to count appflowpolicy_lbvserver_binding resources configued on NetScaler. */
 public static long count(nitro_service service, String name) throws Exception {
   appflowpolicy_lbvserver_binding obj = new appflowpolicy_lbvserver_binding();
   obj.set_name(name);
   options option = new options();
   option.set_count(true);
   appflowpolicy_lbvserver_binding response[] =
       (appflowpolicy_lbvserver_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /** Use this API to count aaauser_vpntrafficpolicy_binding resources configued on NetScaler. */
 public static long count(nitro_service service, String username) throws Exception {
   aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
   obj.set_username(username);
   options option = new options();
   option.set_count(true);
   aaauser_vpntrafficpolicy_binding response[] =
       (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to count appfwprofile_trustedlearningclients_binding resources configued on
  * NetScaler.
  */
 public static long count(nitro_service service, String name) throws Exception {
   appfwprofile_trustedlearningclients_binding obj =
       new appfwprofile_trustedlearningclients_binding();
   obj.set_name(name);
   options option = new options();
   option.set_count(true);
   appfwprofile_trustedlearningclients_binding response[] =
       (appfwprofile_trustedlearningclients_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to count vpnvserver_vpnclientlessaccesspolicy_binding resources configued on
  * NetScaler.
  */
 public static long count(nitro_service service, String name) throws Exception {
   vpnvserver_vpnclientlessaccesspolicy_binding obj =
       new vpnvserver_vpnclientlessaccesspolicy_binding();
   obj.set_name(name);
   options option = new options();
   option.set_count(true);
   vpnvserver_vpnclientlessaccesspolicy_binding response[] =
       (vpnvserver_vpnclientlessaccesspolicy_binding[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to count the filtered set of appflowpolicy_lbvserver_binding resources. set the
  * filter parameter values in filtervalue object.
  */
 public static long count_filtered(nitro_service service, String name, filtervalue[] filter)
     throws Exception {
   appflowpolicy_lbvserver_binding obj = new appflowpolicy_lbvserver_binding();
   obj.set_name(name);
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   appflowpolicy_lbvserver_binding[] response =
       (appflowpolicy_lbvserver_binding[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
 /**
  * Use this API to count the filtered set of aaauser_vpntrafficpolicy_binding resources. set the
  * filter parameter values in filtervalue object.
  */
 public static long count_filtered(nitro_service service, String username, filtervalue[] filter)
     throws Exception {
   aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
   obj.set_username(username);
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   aaauser_vpntrafficpolicy_binding[] response =
       (aaauser_vpntrafficpolicy_binding[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }