updateAntivirusSpywarePolicy


SoftLayer_Software_Component_Trellix::updateAntivirusSpywarePolicy

Update an anti-virus/spyware policy.

Description

Update an anti-virus/spyware policy. The policy options that it accepts are the following: *1 - Minimal *2 - Relaxed *3 - Default *4 - High *5 - Ultimate

Parameters

Name Type Description
newPolicy string The new anti-virus policy.
enforce boolean Enforce the updated policy

Required Headers

Optional Headers

  • None

Return Values

  • boolean

Error Handling

  • Throws the error “The host ips policy update page returned a failed response code.”
  • Throws the error “The host ips policies could not be updated at this time.”
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [string, boolean]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Software_Component_Trellix/{SoftLayer_Software_Component_TrellixID}/updateAntivirusSpywarePolicy'