KSC Open API
Kaspersky Security Center API description
LicenseKeys::AcquireKeyHosts ( params  pInData,
array  pFields,
array  pFieldsToOrder,
params  pOptions,
int  lTimeoutSec,
[out] int  lKeyCount,
[out] wstring  wstrIterator 
)

Get an array of hosts that are currently using the specified key.

Parameters:
pInData(params) container of input attributes:
  • "KLLIC_SERIAL" - serial number of the key which the hosts array will be returned for, mandatory (paramString).
pFields(array) of paramString, array of host attribute names to return. See List of host-specific license attributes for attribute names.
pFieldsToOrder(array) of paramString, array of host attributes to be used for ordering
pOptions(params) currently ignored.
lTimeoutSec(int) iterator timeout in seconds. Output iterator will be available for this time long. Default is zero which means 15 minutes long.
lKeyCount(int) count of keys returned via enumerator.
wstrIterator(wstring) forward-iterator name for accessing key attributes through GroupSyncIterator. Call GroupSyncIterator::GetNextItems to iterate. Call GroupSyncIterator::ReleaseIterator when you are done.
Exceptions:
Throwsexception in case of error.