Class Rule
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.network.securitygroup.Rule
@ApiType("SoftLayer_Network_SecurityGroup_Rule") public class Rule extends Entity
The SoftLayer_Network_SecurityGroup_Rule data type contains general information for a single rule that belongs to a [[SoftLayer_Network_SecurityGroup|security group]]. By default, all traffic (both inbound and
outbound) to a virtual server instance is blocked. Security group rules are permissive, and define the allowed incoming (ingress) and outgoing (egress) traffic to both the public and private interfaces of a
virtual server instance. The order of rules within a security group does not matter and priority always falls to the least restrictive rule.
- See Also:
- SoftLayer_Network_SecurityGroup_Rule
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Rule.Mask
-
Field Summary
Fields Modifier and Type Field Description protected GregorianCalendar
createDate
The createDate field for a rule.protected boolean
createDateSpecified
protected String
direction
The direction of traffic (ingress or egress).protected boolean
directionSpecified
protected String
ethertype
IPv4 or IPv6.protected boolean
ethertypeSpecified
protected Long
id
The unique ID for a rule.protected boolean
idSpecified
protected GregorianCalendar
modifyDate
The modifyDate field for a rule.protected boolean
modifyDateSpecified
protected Long
portRangeMax
The end of the port range for allowed traffic.protected boolean
portRangeMaxSpecified
protected Long
portRangeMin
The start of the port range for allowed traffic.protected boolean
portRangeMinSpecified
protected String
protocol
The protocol of packets (icmp, tcp, udp, or vrrp).protected boolean
protocolSpecified
protected SecurityGroup
remoteGroup
The remote security group allowed as part of this rule.protected Long
remoteGroupId
The ID of the remote security group allowed as part of the rule.protected boolean
remoteGroupIdSpecified
protected String
remoteIp
CIDR or IP address for allowed connections.protected boolean
remoteIpSpecified
protected SecurityGroup
securityGroup
The security group of this rule.protected Long
securityGroupId
The ID of the security group that owns the rule.protected boolean
securityGroupIdSpecified
-
Constructor Summary
Constructors Constructor Description Rule()
-
Method Summary
-
Field Details
-
remoteGroup
The remote security group allowed as part of this rule. -
securityGroup
The security group of this rule. -
createDate
The createDate field for a rule. It is essentially the date and time that the security group rule was created. -
createDateSpecified
protected boolean createDateSpecified -
direction
The direction of traffic (ingress or egress). -
directionSpecified
protected boolean directionSpecified -
ethertype
IPv4 or IPv6. If the remoteIp or ethertype properties are not specified, the default is IPv4. Otherwise ethertype will default based on the format of the specified remoteIp. -
ethertypeSpecified
protected boolean ethertypeSpecified -
id
The unique ID for a rule. -
idSpecified
protected boolean idSpecified -
modifyDate
The modifyDate field for a rule. It is essentially the date and time that the security group rule was last changed. -
modifyDateSpecified
protected boolean modifyDateSpecified -
portRangeMax
The end of the port range for allowed traffic. When the protocol is icmp, this value specifies the icmp code to permit. When icmp code is specified, icmp type is required. When the protocol is vrrp, ports cannot be specified. -
portRangeMaxSpecified
protected boolean portRangeMaxSpecified -
portRangeMin
The start of the port range for allowed traffic. When the protocol is icmp, this value specifies the icmp type to permit. -
portRangeMinSpecified
protected boolean portRangeMinSpecified -
protocol
The protocol of packets (icmp, tcp, udp, or vrrp). -
protocolSpecified
protected boolean protocolSpecified -
remoteGroupId
The ID of the remote security group allowed as part of the rule. This property is mutually exclusive with the remoteIp property. -
remoteGroupIdSpecified
protected boolean remoteGroupIdSpecified -
remoteIp
CIDR or IP address for allowed connections. This property is mutually exclusive with the remoteGroupId property. When the protocol is vrrp, ports cannot be specified. -
remoteIpSpecified
protected boolean remoteIpSpecified -
securityGroupId
The ID of the security group that owns the rule. -
securityGroupIdSpecified
protected boolean securityGroupIdSpecified
-
-
Constructor Details
-
Rule
public Rule()
-
-
Method Details
-
getRemoteGroup
-
setRemoteGroup
-
getSecurityGroup
-
setSecurityGroup
-
getCreateDate
-
setCreateDate
-
isCreateDateSpecified
public boolean isCreateDateSpecified() -
unsetCreateDate
public void unsetCreateDate() -
getDirection
-
setDirection
-
isDirectionSpecified
public boolean isDirectionSpecified() -
unsetDirection
public void unsetDirection() -
getEthertype
-
setEthertype
-
isEthertypeSpecified
public boolean isEthertypeSpecified() -
unsetEthertype
public void unsetEthertype() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getModifyDate
-
setModifyDate
-
isModifyDateSpecified
public boolean isModifyDateSpecified() -
unsetModifyDate
public void unsetModifyDate() -
getPortRangeMax
-
setPortRangeMax
-
isPortRangeMaxSpecified
public boolean isPortRangeMaxSpecified() -
unsetPortRangeMax
public void unsetPortRangeMax() -
getPortRangeMin
-
setPortRangeMin
-
isPortRangeMinSpecified
public boolean isPortRangeMinSpecified() -
unsetPortRangeMin
public void unsetPortRangeMin() -
getProtocol
-
setProtocol
-
isProtocolSpecified
public boolean isProtocolSpecified() -
unsetProtocol
public void unsetProtocol() -
getRemoteGroupId
-
setRemoteGroupId
-
isRemoteGroupIdSpecified
public boolean isRemoteGroupIdSpecified() -
unsetRemoteGroupId
public void unsetRemoteGroupId() -
getRemoteIp
-
setRemoteIp
-
isRemoteIpSpecified
public boolean isRemoteIpSpecified() -
unsetRemoteIp
public void unsetRemoteIp() -
getSecurityGroupId
-
setSecurityGroupId
-
isSecurityGroupIdSpecified
public boolean isSecurityGroupIdSpecified() -
unsetSecurityGroupId
public void unsetSecurityGroupId()
-