KSC Open API
Kaspersky Security Center API description
Tasks::ResetHostIteratorForTaskStatus ( wstring  strTask,
array  pFields2Return,
int  nHostStateMask,
int  nLifetime,
[out] wstring  strHostIteratorId 
)

Make host task states request.

Makes request of the status of group task that runs on many machines

Parameters:
strTask(wstring) task id in digital representation, like "1" or "45" and etc.
pFields2Return(array) array of attribute names to return. See Host task state attributes
nHostStateMask(int) host task state. See Bit masks of host task states
nLifetime(int) lifetime in seconds
[out]strHostIteratorId(wstring) iterator id, to get requested data use Tasks.GetNextHostStatus, Tasks.GetHostStatusRecordRange