Class FirewallRules


  • public class FirewallRules
    extends com.ibm.cloud.sdk.core.service.BaseService
    Firewall rules. API Version: 1.0.1
    • Constructor Detail

      • FirewallRules

        public FirewallRules​(String serviceName,
                             com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `FirewallRules` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        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 FirewallRules newInstance()
        Class method which constructs an instance of the `FirewallRules` client. The default service name is used to configure the client instance.
        Returns:
        an instance of the `FirewallRules` client using external configuration
      • newInstance

        public static FirewallRules newInstance​(String serviceName)
        Class method which constructs an instance of the `FirewallRules` client. The specified service name is used to configure the client instance.
        Parameters:
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `FirewallRules` client using external configuration
      • createFirewallRules

        public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> createFirewallRules​(CreateFirewallRulesOptions createFirewallRulesOptions)
        Create firewall rules for a zone. Create new firewall rules for a given zone under a service instance.
        Parameters:
        createFirewallRulesOptions - the CreateFirewallRulesOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type FirewallRulesResp
      • updateFirewllRules

        public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> updateFirewllRules​(UpdateFirewllRulesOptions updateFirewllRulesOptions)
        Update firewall rules. Update existing firewall rules for a given zone under a given service instance.
        Parameters:
        updateFirewllRulesOptions - the UpdateFirewllRulesOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type FirewallRulesResp
      • getFirewallRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> getFirewallRule​(GetFirewallRuleOptions getFirewallRuleOptions)
        Get firewall rule details by id. Get the details of a firewall rule for a given zone under a given service instance.
        Parameters:
        getFirewallRuleOptions - the GetFirewallRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type FirewallRuleResp
      • updateFirewallRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> updateFirewallRule​(UpdateFirewallRuleOptions updateFirewallRuleOptions)
        Update a firewall rule. Update an existing firewall rule for a given zone under a given service instance.
        Parameters:
        updateFirewallRuleOptions - the UpdateFirewallRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type FirewallRuleResp