Class SecurityGroupRule

    • Method Detail

      • getDirection

        public String getDirection()
        Gets the direction. The direction of traffic to allow.
        Returns:
        the direction
      • getHref

        public String getHref()
        Gets the href. The URL for this security group rule.
        Returns:
        the href
      • getId

        public String getId()
        Gets the id. The unique identifier for this security group rule.
        Returns:
        the id
      • getIpVersion

        public String getIpVersion()
        Gets the ipVersion. The IP version to allow. The format of `local.address`, `remote.address`, `local.cidr_block` or `remote.cidr_block` must match this property, if they are used. If `remote` references a security group, then this rule only applies to IP addresses in that group matching this IP version.
        Returns:
        the ipVersion
      • getLocal

        public SecurityGroupRuleLocal getLocal()
        Gets the local. The local IP address or range of local IP addresses to which this rule will allow inbound traffic (or from which, for outbound traffic). A CIDR block of `0.0.0.0/0` allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules).
        Returns:
        the local
      • getProtocol

        public String getProtocol()
        Gets the protocol. The protocol to allow. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
        Returns:
        the protocol
      • getRemote

        public SecurityGroupRuleRemote getRemote()
        Gets the remote. The remote IP addresses or security groups from which this rule allows traffic (or to which, for outbound rules). A CIDR block of `0.0.0.0/0` allows traffic from any source (or to any destination, for outbound rules).
        Returns:
        the remote
      • getCode

        public Long getCode()
        Gets the code. The ICMP traffic code to allow. If absent, all codes are allowed.
        Returns:
        the code
      • getType

        public Long getType()
        Gets the type. The ICMP traffic type to allow. If absent, all types are allowed.
        Returns:
        the type
      • getPortMax

        public Long getPortMax()
        Gets the portMax. The inclusive upper bound of TCP/UDP destination port range.
        Returns:
        the portMax
      • getPortMin

        public Long getPortMin()
        Gets the portMin. The inclusive lower bound of TCP/UDP destination port range.
        Returns:
        the portMin