addRules


SoftLayer_Network_SecurityGroup::addRules

Add new rules to a security group.

Description

Add new rules to a security group by sending in an array of template SoftLayer_Network_SecurityGroup_Rule objects to be created.

Parameters

Name Type Description
ruleTemplates SoftLayer_Network_SecurityGroup_Rule[] An array of rule objects you want to create

Required Headers

Optional Headers

  • None

Return Values

curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Network_SecurityGroup_Rule]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Network_SecurityGroup/{SoftLayer_Network_SecurityGroupID}/addRules'