Class Firewall


  • public abstract class Firewall
    extends Object
    • Method Detail

      • id

        public abstract String id()
      • selfLink

        public abstract URI selfLink()
      • creationTimestamp

        public abstract Date creationTimestamp()
      • name

        public abstract String name()
      • network

        public abstract URI network()
        Returns:
        URI of the network to which this firewall is applied; provided by the client when the firewall is created.
      • sourceRanges

        public abstract List<String> sourceRanges()
        One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
        Returns:
        a list of IP address blocks expressed in CIDR format which this rule applies to.
      • sourceTags

        public abstract List<String> sourceTags()
        Returns:
        a list of instance items which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
      • targetTags

        public abstract List<String> targetTags()
        If no targetTags are specified, the firewall rule applies to all instances on the specified network.
        Returns:
        a list of instance items indicating sets of instances located on network which may make network connections as specified in allowed.
      • allowed

        public abstract List<Firewall.Rule> allowed()
        Each rule specifies a protocol and port-range tuple that describes a permitted connection.
        Returns:
        the list of rules specified by this firewall.