editRules


SoftLayer_Network_SecurityGroup::editRules

Edit rules that belong to a security group.

Description

Edit rules that belong to the security group. An array of skeleton SoftLayer_Network_SecurityGroup_Rule objects must be sent in with only the properties defined that you want to change. To edit a property to null, send in -1 for integer properties and "" for string properties. Unchanged properties are left alone.

Parameters

Name Type Description
ruleTemplates SoftLayer_Network_SecurityGroup_Rule[] An array of rule objects

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}/editRules'