KSC Open API
13.1
Kaspersky Security Center API description
|
Acquire administration group attributes. Returns required attributes of the specified administration group.
See also how to use the KlAkOAPI Python package: server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False) oHostGroup = KlAkOAPI.HostGroup.KlAkHostGroup(server) # get id of root group ('Managed devices' group) nRootGroupID = oHostGroup.GroupIdGroups().RetVal() oInfo = oHostGroup.GetGroupInfoEx(nRootGroupID, ['KLGRP_CHLDHST_CNT', 'KLGRP_CHLDGRP_CNT', 'KLGRP_CHLDHST_CNT_OK', 'KLGRP_CHLDHST_CNT_WRN', 'KLGRP_CHLDHST_CNT_CRT']).RetVal() print('"Managed devices" group contains', oInfo['KLGRP_CHLDHST_CNT'], 'hosts, among them: |