コード例 #1
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;
 }
コード例 #2
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;
 }
コード例 #3
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;
 }
コード例 #4
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;
 }
コード例 #5
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;
 }
コード例 #6
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;
 }
コード例 #7
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;
 }
コード例 #8
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;
 }
コード例 #9
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;
 }
コード例 #10
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;
 }
コード例 #11
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;
 }
コード例 #12
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;
 }
コード例 #13
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;
 }
コード例 #14
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;
 }
 /**
  * Use this API to count the filtered set of authorizationpolicy_authorizationpolicylabel_binding
  * resources. filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
 public static long count_filtered(nitro_service service, String name, String filter)
     throws Exception {
   authorizationpolicy_authorizationpolicylabel_binding obj =
       new authorizationpolicy_authorizationpolicylabel_binding();
   obj.set_name(name);
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   authorizationpolicy_authorizationpolicylabel_binding[] response =
       (authorizationpolicy_authorizationpolicylabel_binding[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }