コード例 #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
ファイル: nssimpleacl.java プロジェクト: netscaler/nitro
 /**
  * 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
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /**
  * 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
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /**
  * 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
ファイル: sslwrapkey.java プロジェクト: netscaler/nitro
 /**
  * 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
ファイル: auditnslogpolicy.java プロジェクト: netscaler/nitro
 /**
  * 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;
 }
コード例 #10
0
 /**
  * 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;
 }
コード例 #11
0
 /**
  * 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;
 }
コード例 #12
0
 /**
  * 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
ファイル: auditnslogpolicy.java プロジェクト: netscaler/nitro
 /** 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
ファイル: nssimpleacl.java プロジェクト: netscaler/nitro
 /** 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;
 }
コード例 #16
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;
 }
コード例 #17
0
 /** 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
ファイル: nssimpleacl.java プロジェクト: netscaler/nitro
 /**
  * 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
ファイル: sslwrapkey.java プロジェクト: netscaler/nitro
 /**
  * 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;
 }
コード例 #20
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;
 }
コード例 #23
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;
 }
コード例 #25
0
 /** 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;
 }
コード例 #26
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;
 }
コード例 #27
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;
 }
コード例 #28
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;
 }
コード例 #29
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;
 }
コード例 #30
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;
 }