KSC Open API
Kaspersky Security Center API description
int HostGroup::AddGroup ( params  pInfo)

Creates a new administration group.

Creates a new group with the specified attributes and returns its ID. If such group already exists, the function returns an ID of existing group.

Parameters:
pInfo(params) container with the group attributes. May contain the following attributes (see List of the group attributes):
  • "name"
  • "parentId"
Returns:
(int) ID of the created or existing 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)
            nRootGroupId = oHostGroup.GroupIdGroups().RetVal()
            nNewGroupId = oHostGroup.AddGroup({'name': 'Test group', 'parentId': nRootGroupId}).RetVal()
            
See also: