Beispiel #1
0
 /**
  * Use this API to fetch filtered set of sslwrapkey resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static sslwrapkey[] get_filtered(nitro_service service, String filter) throws Exception {
   sslwrapkey obj = new sslwrapkey();
   options option = new options();
   option.set_filter(filter);
   sslwrapkey[] response = (sslwrapkey[]) obj.getfiltered(service, option);
   return response;
 }
Beispiel #2
0
 /** Use this API to create sslwrapkey. */
 public static base_response create(nitro_service client, sslwrapkey resource) throws Exception {
   sslwrapkey createresource = new sslwrapkey();
   createresource.wrapkeyname = resource.wrapkeyname;
   createresource.password = resource.password;
   createresource.salt = resource.salt;
   return createresource.perform_operation(client, "create");
 }
Beispiel #3
0
 /** Use this API to count the sslwrapkey resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   sslwrapkey obj = new sslwrapkey();
   options option = new options();
   option.set_count(true);
   sslwrapkey[] response = (sslwrapkey[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
Beispiel #4
0
 /**
  * Use this API to count the filtered set of sslwrapkey resources. set the filter parameter values
  * in filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] 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;
 }
Beispiel #5
0
 /** Use this API to fetch all the sslwrapkey resources that are configured on netscaler. */
 public static sslwrapkey[] get(nitro_service service, options option) throws Exception {
   sslwrapkey obj = new sslwrapkey();
   sslwrapkey[] response = (sslwrapkey[]) obj.get_resources(service, option);
   return response;
 }
Beispiel #6
0
 /** Use this API to delete sslwrapkey. */
 public static base_response delete(nitro_service client, sslwrapkey resource) throws Exception {
   sslwrapkey deleteresource = new sslwrapkey();
   deleteresource.wrapkeyname = resource.wrapkeyname;
   return deleteresource.delete_resource(client);
 }