KSC Open API  13.0
Kaspersky Security Center API description
params HostGroup::GetGroupInfoEx ( int  nGroupId,
array  pArrAttributes 
)

Acquire administration group attributes.

Returns required attributes of the specified administration group.

Parameters:
nGroupId(int) Id of existing group
pArrAttributes(array) Array of up to 100 strings. Each entry is an attribute name (see List of group attributes).
Returns:
(params) group attributes (List of group attributes for attribute names)

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:
', \ oInfo['KLGRP_CHLDHST_CNT_OK'], 'hosts are OK,
', oInfo['KLGRP_CHLDHST_CNT_WRN'], 'hosts have status WARNING and
', oInfo['KLGRP_CHLDHST_CNT_CRT'], 'are in CRITICAL status.
' \ 'These counts do not include hosts located in', oInfo['KLGRP_CHLDGRP_CNT'], 'subgroups')