Пример #1
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;
 }
Пример #2
0
 /** Use this API to update auditnslogpolicy. */
 public static base_response update(nitro_service client, auditnslogpolicy resource)
     throws Exception {
   auditnslogpolicy updateresource = new auditnslogpolicy();
   updateresource.name = resource.name;
   updateresource.rule = resource.rule;
   updateresource.action = resource.action;
   return updateresource.update_resource(client);
 }
Пример #3
0
 /** Use this API to add auditnslogpolicy. */
 public static base_response add(nitro_service client, auditnslogpolicy resource)
     throws Exception {
   auditnslogpolicy addresource = new auditnslogpolicy();
   addresource.name = resource.name;
   addresource.rule = resource.rule;
   addresource.action = resource.action;
   return addresource.add_resource(client);
 }
Пример #4
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;
 }
Пример #5
0
 /**
  * Use this API to count the filtered set of auditnslogpolicy resources. set the filter parameter
  * values in filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   auditnslogpolicy obj = new auditnslogpolicy();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   auditnslogpolicy[] response = (auditnslogpolicy[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
Пример #6
0
 /** Use this API to fetch auditnslogpolicy resource of given name . */
 public static auditnslogpolicy get(nitro_service service, String name) throws Exception {
   auditnslogpolicy obj = new auditnslogpolicy();
   obj.set_name(name);
   auditnslogpolicy response = (auditnslogpolicy) obj.get_resource(service);
   return response;
 }
Пример #7
0
 /** 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;
 }
Пример #8
0
 /** Use this API to delete auditnslogpolicy. */
 public static base_response delete(nitro_service client, auditnslogpolicy resource)
     throws Exception {
   auditnslogpolicy deleteresource = new auditnslogpolicy();
   deleteresource.name = resource.name;
   return deleteresource.delete_resource(client);
 }