Class WafRulesApi
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.networking.waf_rules_api.v1.WafRulesApi
-
public class WafRulesApi extends com.ibm.cloud.sdk.core.service.BaseServiceThis document describes CIS WAF Rules API.- Version:
- v1
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
-
Constructor Summary
Constructors Constructor Description WafRulesApi(String crn, String zoneId, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `WafRulesApi` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCrn()Gets the crn.com.ibm.cloud.sdk.core.http.ServiceCall<WafRuleResponse>getWafRule(GetWafRuleOptions getWafRuleOptions)Get WAF rule.StringgetZoneId()Gets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<WafRulesResponse>listWafRules(ListWafRulesOptions listWafRulesOptions)List all WAF rules.static WafRulesApinewInstance(String crn, String zoneId)Class method which constructs an instance of the `WafRulesApi` client.static WafRulesApinewInstance(String crn, String zoneId, String serviceName)Class method which constructs an instance of the `WafRulesApi` client.voidsetCrn(String crn)Sets the crn.voidsetZoneId(String zoneId)Sets the zoneId.com.ibm.cloud.sdk.core.http.ServiceCall<WafRuleResponse>updateWafRule(UpdateWafRuleOptions updateWafRuleOptions)Update WAF rule.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
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 instanceauthenticator- theAuthenticatorinstance 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- theListWafRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWafRulesResponse
-
getWafRule
public com.ibm.cloud.sdk.core.http.ServiceCall<WafRuleResponse> getWafRule(GetWafRuleOptions getWafRuleOptions)
Get WAF rule. Get individual information about a rule.- Parameters:
getWafRuleOptions- theGetWafRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWafRuleResponse
-
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- theUpdateWafRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeWafRuleResponse
-
-