KSC Open API
13.1
Kaspersky Security Center API description
|
Copy or move policy. Copies the specified policy and optionally deletes it.
See also Python code with use of KlAkOAPI Python package below: server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False) oPolicy = KlAkOAPI.Policy.KlAkPolicy(server) oHostGroup = KlAkOAPI.HostGroup.KlAkHostGroup(server) nRootGroupId = oHostGroup.GroupIdGroups().RetVal() idNewPolicy = oPolicy.CopyOrMovePolicy( idPolicy, nRootGroupId, False, {"KLPOL_DN": "blah-blah-blah", "KLPOL_ACTIVE": False}) |