STA-FetchListContent
This script will get the Unusual Activity Group from "sta_unusual_activity_group" List.
python · Thales SafeNet Trusted Access
Details
| ID | STA-FetchListContent |
|---|---|
| Language | python |
| From Version | 6.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
README
This script will get the Unusual Activity Group from “sta_unusual_activity_group” List.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | |
| Cortex XSOAR Version | 6.0.0 |
Dependencies
This script uses the following commands and scripts.
- getList
Inputs
| Argument Name | Description |
|---|---|
| list_name | Name of the list containing the Unusual Activity Group. |
Outputs
| Path | Description | Type |
|---|---|---|
| STA.GET.GROUP | Return Unusual Activity Group name. | string |
import traceback import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 """ STANDALONE FUNCTION """ # Get Unusual Activity Group name from the list. def get_unusual_activity_group_sta(args: Dict[str, Any]) -> CommandResults: list_name = args.get("list_name") original_result = demisto.executeCommand("getList", {"listName": list_name})[0] return CommandResults( readable_output=f'## {original_result["Contents"]}', outputs=original_result["Contents"], outputs_prefix="STA.GROUP", outputs_key_field=None, ) """ MAIN FUNCTION """ def main(): """main function, parses args.""" try: return_results(get_unusual_activity_group_sta(demisto.args())) except Exception as ex: demisto.error(traceback.format_exc()) # print the traceback return_error(f"Failed to execute STAFetchListContent script. Error: {ex!s}") """ ENTRY POINT """ if __name__ in ("__main__", "__builtin__", "builtins"): main()