KSC Open API
13.1
Kaspersky Security Center API description
|
Rename a tag. Allows to rename tag. If szwOldTagValue is assigned to some objects then szwNewTagValue will be also assigned to these objects. So RenameTag is not equivalent to deleting szwOldTagValue and adding szwNewTagValue
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) oTagsControl = KlAkOAPI.ListTags.KlAkListTags(server, 'HostsTags') # set "CustomTag" for host oTagsControl.AddTag("CustomTag", {}) # rename it oTagsControl.RenameTag("CustomTag", "NewCustomTag", {}) |