Hi Lucian,
You can use "artifact.addTags()" to add tags to an artifact. The "addTags()" function can consume multiple tags at one time and will create the tags if the tags do not exist in the system. For example, the follow snippet will add "Ransomeware" and "ATP41" tags to the artifact.
artifact.addTags(["Ransomeware", "ATP41"])
There are also other related functions, such as "
getAllTags", "containsTag", you can find them in this dochttps://www.ibm.com/docs/en/sqsp/46?topic=scripts-artifact-operationsNote: these functions are supported starting v43 and only on python3
Thank you.
------------------------------
Gilbert Liao
------------------------------
Original Message:
Sent: Mon September 12, 2022 05:33 AM
From: Lucian Sipos
Subject: Add Tags to Artifact via Python
Hi
How do I add new Tags (existent/non existent) to an Artifact through Python?
Thanks
------------------------------
Lucian Sipos
------------------------------