KSC Open API
13.1
Kaspersky Security Center API description
|
Creates a new incident.
Remarks: 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() |