KSC Open API
Kaspersky Security Center API description
Format of the KLHST_MR_Custom host moving rule container for legacy rules

The container KLHST_MR_Custom must contain the following variables:


"KLHST_MR_LEGACY_nSrcObject"paramIntSource object ID. See also KLHST_MR_LEGACY_nType.
"KLHST_MR_LEGACY_nDstGroup"paramIntDestination administration group ID.
"KLHST_MR_LEGACY_nType"paramIntType of source object. Uses one of the following values:
  • 1 - Move from unassigned, KLHST_MR_LEGACY_nSrcObject is an ID of the administration group from an unassigned subtree.
  • 2 - Move from IP diapason, KLHST_MR_LEGACY_nSrcObject is an ID of the IP diapason. See ScanDiapasons and KLDPNS_ID.
  • 3 - Move from Active Directory OU, KLHST_MR_LEGACY_nSrcObject is an ID of the OU. See AdHosts and adhst_id.
"KLHST_MR_LEGACY_bNewOnly"paramBoolMove only new hosts.