Package com.citrix.netscaler.nitro.service

Examples of com.citrix.netscaler.nitro.service.options


  /**
  * Use this API to count the rewritepolicylabel resources configured on NetScaler.
  */
  public static long count(nitro_service service) throws Exception{
    rewritepolicylabel obj = new rewritepolicylabel();
    options option = new options();
    option.set_count(true);
    rewritepolicylabel[] response = (rewritepolicylabel[])obj.get_resources(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here


  * Use this API to count filtered the set of rewritepolicylabel 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{
    rewritepolicylabel obj = new rewritepolicylabel();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    rewritepolicylabel[] response = (rewritepolicylabel[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to count the filtered set of rewritepolicylabel resources.
  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception{
    rewritepolicylabel obj = new rewritepolicylabel();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    rewritepolicylabel[] response = (rewritepolicylabel[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to fetch filtered set of vpnglobal_authenticationldappolicy_binding resources.
  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static vpnglobal_authenticationldappolicy_binding[] get_filtered(nitro_service service, String filter) throws Exception{
    vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
    options option = new options();
    option.set_filter(filter);
    vpnglobal_authenticationldappolicy_binding[] response = (vpnglobal_authenticationldappolicy_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to fetch filtered set of vpnglobal_authenticationldappolicy_binding resources.
  * set the filter parameter values in filtervalue object.
  */
  public static vpnglobal_authenticationldappolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
    vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
    options option = new options();
    option.set_filter(filter);
    vpnglobal_authenticationldappolicy_binding[] response = (vpnglobal_authenticationldappolicy_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  /**
  * Use this API to count vpnglobal_authenticationldappolicy_binding resources configued on NetScaler.
  */
  public static long count(nitro_service service) throws Exception{
    vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
    options option = new options();
    option.set_count(true);
    vpnglobal_authenticationldappolicy_binding response[] = (vpnglobal_authenticationldappolicy_binding[]) obj.get_resources(service,option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to count the filtered set of vpnglobal_authenticationldappolicy_binding 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{
    vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vpnglobal_authenticationldappolicy_binding[] response = (vpnglobal_authenticationldappolicy_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to count the filtered set of vpnglobal_authenticationldappolicy_binding resources.
  * set the filter parameter values in filtervalue object.
  */
  public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception{
    vpnglobal_authenticationldappolicy_binding obj = new vpnglobal_authenticationldappolicy_binding();
    options option = new options();
    option.set_count(true);
    option.set_filter(filter);
    vpnglobal_authenticationldappolicy_binding[] response = (vpnglobal_authenticationldappolicy_binding[]) obj.getfiltered(service, option);
    if (response != null) {
      return response[0].__count;
    }
    return 0;
View Full Code Here

  * Use this API to fetch filtered set of sslglobal_sslpolicy_binding resources.
  * filter string should be in JSON format.eg: "port:80,servicetype:HTTP".
  */
  public static sslglobal_sslpolicy_binding[] get_filtered(nitro_service service, String filter) throws Exception{
    sslglobal_sslpolicy_binding obj = new sslglobal_sslpolicy_binding();
    options option = new options();
    option.set_filter(filter);
    sslglobal_sslpolicy_binding[] response = (sslglobal_sslpolicy_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

  * Use this API to fetch filtered set of sslglobal_sslpolicy_binding resources.
  * set the filter parameter values in filtervalue object.
  */
  public static sslglobal_sslpolicy_binding[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception{
    sslglobal_sslpolicy_binding obj = new sslglobal_sslpolicy_binding();
    options option = new options();
    option.set_filter(filter);
    sslglobal_sslpolicy_binding[] response = (sslglobal_sslpolicy_binding[]) obj.getfiltered(service, option);
    return response;
  }
View Full Code Here

TOP

Related Classes of com.citrix.netscaler.nitro.service.options

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.