KSC Open API  13.1
Kaspersky Security Center API description
array ReportManager::EnumReports ( )

Enumerates all existing reports.

Returns:
(array) collection of reports. Each entry is the params object containing the following attributes:
  • RPT_ID
  • RPT_DN
  • RPT_TYPE
  • RPT_CREATED
  • RPT_MODIFIED
  • RPT_GROUP_ID
  • RPT_EXTRA_DATA

For more information, see List of report attributes.

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)
            print('List of reports available on the server:')
            arrReportsList = oReportManager.EnumReports().RetVal()
            for report in arrReportsList:
                print ('* ID ' + str(report['RPT_ID']) + ': ' + report['RPT_DN'])