validateRule


SoftLayer_Network_Firewall_Update_Request_Rule::validateRule

Validate a firewall update request rule.

Description

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.


Parameters

Name Type Description
rule SoftLayer_Network_Firewall_Update_Request_Rule The rule to validate
applyToComponentId int The ID of a SoftLayer_Network_Component_Firewall this rule will apply to.
applyToAclId int The ID of a SoftLayer_Network_Firewall_Module_Context_Interface_AccessControlList this rule will apply to.

Required Headers

Optional Headers

  • None

Return Values

  • void

Error Handling

  • Throws an exception for any validation failure
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Network_Firewall_Update_Request_Rule, int, int]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Firewall_Update_Request_Rule/validateRule'