Class FirewallAccessRules


  • public class FirewallAccessRules
    extends com.ibm.cloud.sdk.core.service.BaseService
    Instance Level Firewall Access Rules.
    Version:
    v1
    • Constructor Detail

      • FirewallAccessRules

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

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

        public String getCrn()
        Gets the crn. Full crn of the service instance.
        Returns:
        the crn
      • setCrn

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

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListAccountAccessRulesResp> listAllAccountAccessRules()
        List instance level firewall access rules. List all instance level firewall access rules.
        Returns:
        a ServiceCall with a result of type ListAccountAccessRulesResp
      • createAccountAccessRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> createAccountAccessRule()
        Create instance level firewall access rule. Create a new instance level firewall access rule for a given service instance.
        Returns:
        a ServiceCall with a result of type AccountAccessRuleResp
      • getAccountAccessRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<AccountAccessRuleResp> getAccountAccessRule​(GetAccountAccessRuleOptions getAccountAccessRuleOptions)
        Get instance level firewall access rule. Get the details of an instance level firewall access rule for a given service instance.
        Parameters:
        getAccountAccessRuleOptions - the GetAccountAccessRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type AccountAccessRuleResp