Class WafRulesApi


  • public class WafRulesApi
    extends com.ibm.cloud.sdk.core.service.BaseService
    This document describes CIS WAF Rules API.
    Version:
    v1
    • Constructor Detail

      • WafRulesApi

        public WafRulesApi​(String crn,
                           String zoneId,
                           String serviceName,
                           com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `WafRulesApi` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        crn - cloud resource name.
        zoneId - zone id.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static WafRulesApi newInstance​(String crn,
                                              String zoneId)
        Class method which constructs an instance of the `WafRulesApi` client. The default service name is used to configure the client instance.
        Parameters:
        crn - cloud resource name.
        zoneId - zone id.
        Returns:
        an instance of the `WafRulesApi` client using external configuration
      • newInstance

        public static WafRulesApi newInstance​(String crn,
                                              String zoneId,
                                              String serviceName)
        Class method which constructs an instance of the `WafRulesApi` client. The specified service name is used to configure the client instance.
        Parameters:
        crn - cloud resource name.
        zoneId - zone id.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `WafRulesApi` client using external configuration
      • getCrn

        public String getCrn()
        Gets the crn. cloud resource name.
        Returns:
        the crn
      • setCrn

        public void setCrn​(String crn)
        Sets the crn.
        Parameters:
        crn - the new crn
      • getZoneId

        public String getZoneId()
        Gets the zoneId. zone id.
        Returns:
        the zoneId
      • setZoneId

        public void setZoneId​(String zoneId)
        Sets the zoneId.
        Parameters:
        zoneId - the new zoneId
      • listWafRules

        public com.ibm.cloud.sdk.core.http.ServiceCall<WafRulesResponse> listWafRules​(ListWafRulesOptions listWafRulesOptions)
        List all WAF rules. List all Web Application Firewall (WAF) rules.
        Parameters:
        listWafRulesOptions - the ListWafRulesOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type WafRulesResponse
      • getWafRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<WafRuleResponse> getWafRule​(GetWafRuleOptions getWafRuleOptions)
        Get WAF rule. Get individual information about a rule.
        Parameters:
        getWafRuleOptions - the GetWafRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type WafRuleResponse
      • updateWafRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<WafRuleResponse> updateWafRule​(UpdateWafRuleOptions updateWafRuleOptions)
        Update WAF rule. Update the action the rule will perform if triggered on the zone.
        Parameters:
        updateWafRuleOptions - the UpdateWafRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type WafRuleResponse