KSC Open API  13.1
Kaspersky Security Center API description
HostTagsRulesApi::ExecuteRule ( wstring  szwTagValue,
[out] wstring  wstrActionGuid 
)

Initiate application of the rule.

Method initiates application of specified rule.

It is also allowed to execute disabled rule ( when "KLHST_HTR_Enabled" attribute is false ). Such run is reset rule tag for all hosts where it was been previously set by the rule.

After returning from this method it is needed to wait while AsyncActionStateChecker.CheckActionState will return bFinalized or call HostTagsRulesApi.CancelAsyncAction with wstrActionGuid

Parameters:
szwTagValue(wstring). tag of the rule. rule id
[out]wstrActionGuid(wstring) id of asynchronous operation, to get status use AsyncActionStateChecker.CheckActionState