KSC Open API  13.1
Kaspersky Security Center API description
wstring GroupSync::GetSyncHostsInfo ( int  nSync,
array  arrFieldsToReturn,
array  arrFieldsToOrder,
int  nLifeTime 
)

Acquire group synchronization state at target hosts.

Returns forward iterator to access requested properties of the specified group synchronization at target hosts.

Parameters:
nSync(int) id of the group synchronization. Can be retrieved from policy attribute KLPOL_GSYN_ID
arrFieldsToReturn(array) array of attribute names to return. See List of group synchronization host attributes for attribute names
arrFieldsToOrder(array) array of containers each of them containing two attributes :
nLifeTime(int) timeout in seconds to keep the result-set alive, zero means 'default value'
Returns:
(wstring) forward identifier id. Use it in iterator methods of GroupSyncIterator