KSC Open API  13.0
Kaspersky Security Center API description
HostGroup::ResolveAndMoveToGroup ( params  pInfo,
[out] params  pResults 
)

Moves the hosts to a group by a name or IP address.

If the entered name corresponds to the IP address format, then the server tries to find the host with the indicated IP address in the database. Otherwise, the server tries to interpret the host as follows:

  1. Name (KLHST_WKS_HOSTNAME)
  2. Display name (KLHST_WKS_DN)
  3. NetBIOS name (KLHST_WKS_WINHOSTNAME)
  4. DNS name (KLHST_WKS_DNSNAME)
Parameters:
pInfo(params) input container. Must contain the following variables:
  • KLHST_WKS_ANYNAME (paramArray) - Array of strings with the host names.
  • KLHST_WKS_GROUPID (paramInt) - ID of the administration group to which the designated hosts will be placed.
[out]pResults(params) output container. Contains the following variables: KLHST_WKS_RESULTS (paramArray) - Array of boolean values. If the i-th element of this array is false, then the i-th host of the input KLHST_WKS_ANYNAME array cannot be placed in the group (could not resolve the name).