KSC Open API
Kaspersky Security Center API description
|
Receives the administration group ID by using its name and the parent group ID.
See also how to use the KlAkOAPI Python package: def FindGroupByLongName(oHostGroup, strFullName): oArray = strFullName.split("/") nLastGroupId = oHostGroup.GroupIdGroups().RetVal() for oElem in oArray: if oElem == '': continue nLastGroupId = oHostGroup.GetGroupId(nLastGroupId, oElem).RetVal() if nLastGroupId == -1: break return nLastGroupId |