コード例 #1
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;
 }
コード例 #2
0
ファイル: auditnslogpolicy.java プロジェクト: netscaler/nitro
 /** Use this API to fetch all the auditnslogpolicy resources that are configured on netscaler. */
 public static auditnslogpolicy[] get(nitro_service service, options option) throws Exception {
   auditnslogpolicy obj = new auditnslogpolicy();
   auditnslogpolicy[] response = (auditnslogpolicy[]) obj.get_resources(service, option);
   return response;
 }