KSC Open API
Kaspersky Security Center API description
|
Gets names of sections from the host settings storage. If the product is empty, then the names section will contain all product names. If the product is not empty and the version is empty, then the names section will contain all versions for the specified product name. If the product and version are not empty, then the names section will contain all sections for the specified product and version.
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) # host details strHostId = ... # get names of sections oSSSections = oHostGroup.SS_GetNames(strHostId, "SS_SETTINGS", "1103", "1.0.0.0").RetVal() print("Settings dump - Begin") for oSection in oSSSections: # read each section one by one oParData = oHostGroup.SS_Read(strHostId, "SS_SETTINGS", "1103", "1.0.0.0", oSection).RetVal() print(oSection) print(oParData) print("Settings dump - End") |