KSC Open API
Kaspersky Security Center API description
int HostGroup::AddIncident ( params  pData)

Creates a new incident.

Parameters:
pData(params) container with the incident attributes. The following attributes can be set:
  • "KLINCDT_SEVERITY" (required)
  • "KLINCDT_ADDED" (required)
  • "KLINCDT_BODY" (required)
  • "KLHST_WKS_HOSTNAME" (required)
  • "KLHSTUSER_ID" (optional)
Returns:
(int) unique incident ID.

Remarks:
See List of the incident attributes.

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)
            nIncidentId = oHostGroup.AddIncident({"KLINCDT_SEVERITY": 1, \
                "KLINCDT_ADDED": KlAkOAPI.Params.paramDateTime(datetime.datetime.now()), \
                "KLINCDT_BODY": "test incident body", \
                "KLINCDT_IS_HANDLED": False, \
                "KLHST_WKS_HOSTNAME": strHostId}).RetVal()