KSC Open API  13.0
Kaspersky Security Center API description
Tasks::ResetHostIteratorForTaskStatusEx ( wstring  strTask,
array  pFields2Return,
array  pFields2Order,
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
pFields2Order(array) array of containers each of them containing two attributes:
  • "Name" (paramString) name of attribute used for sorting
  • "Asc" (paramBool) ascending if true descending otherwise
nHostStateMask(int) host task state. See Bit masks of host task states
nLifetime(int) lifetime in seconds
[out]strHostIteratorId(wstring) iterator id, to get requsted data use Tasks.GetNextHostStatus, Tasks.GetHostStatusRecordRange