KSC Open API
Kaspersky Security Center API description
int TrafficManager::UpdateRestriction ( int  nRestrictionId,
params  pRestriction 
)

Modify existing traffic restriction settings.

Parameters:
[in]nRestrictionIdrestriction to modify. If restriction with such id does not exist then new restriction will be added and this parameters will be ignored.
[in]pRestrictionnew restriction settings, see Traffic restrictions for details and attributes meaning
Returns:
(int) modified restriction id. If restriction did not exist before call then newly created restriction id.