createObject


SoftLayer_Network_Firewall_Update_Request_Rule::createObject

Create a new firewall update request rule.

Description

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..


Parameters

Name Type Description
templateObject SoftLayer_Network_Firewall_Update_Request_Rule The SoftLayer_Network_Firewall_Update_Request_Rule object that you wish to create.

Required Headers

Optional Headers

Return Values

Error Handling

  • Throw the exception “At least one valid rule is required to create a a firewall update request.” if the firewall update request in the templateObject parameter doesn’t have at least one rule record.
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Network_Firewall_Update_Request_Rule]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_Firewall_Update_Request_Rule/createObject'