Interface Rule.Service
-
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- Enclosing class:
- Rule
@ApiService("SoftLayer_Network_Firewall_Update_Request_Rule") public static interface Rule.Service extends Service
The SoftLayer_Network_Firewall_Update_Request_Rule service accesses information relating to a SoftLayer network firewall update request rule. This rule is a member of a [[SoftLayer Network Firewall Update Request]]. Use the [[SoftLayer Network Component Firewall]] service to view current rules. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rule.ServiceAsync
asAsync()
Get an async version of this serviceRule
createObject(Rule templateObject)
Create a new firewall update request.Request
getFirewallUpdateRequest()
The update request that this rule belongs to.Rule
getObject()
getObject returns a SoftLayer_Network_Firewall_Update_Request_Rule object.void
setMask(Rule.Mask mask)
Void
validateRule(Rule rule, Long applyToComponentId, Long applyToAclId)
Validate the supplied firewall request rule against the object it will apply to.Rule.Mask
withMask()
Use the existing mask on this service or create it if not presentRule.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return it-
Methods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
-
-
-
Method Detail
-
asAsync
Rule.ServiceAsync asAsync()
Description copied from interface:Service
Get an async version of this service
-
withNewMask
Rule.Mask withNewMask()
Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
-
withMask
Rule.Mask withMask()
Description copied from interface:Maskable
Use the existing mask on this service or create it if not present
-
setMask
void setMask(Rule.Mask mask)
-
createObject
@ApiMethod Rule createObject(Rule templateObject)
Create a new firewall update request. The SoftLayer_Network_Firewall_Update_Request object passed to this function must have at least one rule.
''createObject'' returns a Boolean ''true'' on successful object creation or ''false'' if your firewall update request was unable to be created..
-
getObject
@ApiMethod(instanceRequired=true) Rule getObject()
getObject returns a SoftLayer_Network_Firewall_Update_Request_Rule object. You can only get historical objects for servers attached to your account that have a network firewall enabled. createObject inserts a new SoftLayer_Network_Firewall_Update_Request_Rule object. Use the SoftLayer_Network_Firewall_Update_Request to create groups of rules for an update request.
-
validateRule
@ApiMethod Void validateRule(Rule rule, Long applyToComponentId, Long applyToAclId)
Validate the supplied firewall request rule against the object it will apply to. For IPv4 rules, pass in an instance of SoftLayer_Network_Firewall_Update_Request_Rule. for IPv6 rules, pass in an instance of SoftLayer_Network_Firewall_Update_Request_Rule_Version6. The ID of the applied to object can either be applyToComponentId (an ID of a SoftLayer_Network_Component_Firewall) or applyToAclId (an ID of a SoftLayer_Network_Firewall_Module_Context_Interface_AccessControlList). One, and only one, of applyToComponentId and applyToAclId can be specified.
If validation is successful, nothing is returned. If validation is unsuccessful, an exception is thrown explaining the nature of the validation error.
-
getFirewallUpdateRequest
@ApiMethod(instanceRequired=true) Request getFirewallUpdateRequest()
The update request that this rule belongs to.
-
-