|
KSC Open API
Kaspersky Security Center API description
|
Returns default report information for specified report type.
See also the Python code below where the KlAkOAPI Python package is used:
server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False)oReportManager = KlAkOAPI.ReportManager.KlAkReportManager(server) oInfo = oReportManager.GetDefaultReportInfo(1).RetVal() # Threats report
print(oInfo["RPT_DN"], 'created', oInfo["RPT_CREATED"], 'and acts in the group', oInfo["RPT_GROUP_ID"], 'contains the following fields:')
for field in oInfo["RPT_FIELDS"]:
print('*', field)
|