TagIndicatorButton
This is a wrapper around the setIndicators script.
Source
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def main(): args = demisto.args() try: res = demisto.executeCommand("setIndicators", {"indicatorsValues": args.get("Indicators"), "tags": args.get("Tags")}) if is_error(res): raise DemistoException(f"Failed to set indicators: {get_error(res)!s}") return_results(CommandResults(readable_output=res[0]["Contents"])) except Exception as e: return_error(e) if __name__ in ["__main__", "__builtin__", "builtins"]: main()
README
This is a wrapper around the setIndicators script.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.0.0 |
Inputs
| Argument Name | Description |
|---|---|
| Indicators | The CSV list of indicators to tag. |
| Tags | The tags to add to the indicators. |
Outputs
There are no outputs for this script.
Script Examples
Example command
!TagIndicatorButton Indicators=1.1.1.1 Tags=allow
Context Example
{}
Human Readable Output
done - updated 1 indicators