GetFailedTasks
Integrations & Incidents Health Check Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.0.0 and later.
Gets failed tasks details for incidents based on a query. Limited to 1000 incidents
#
PermissionsThis automation runs using the default Limited User role, unless you explicitly change the permissions. For more information, see the section about permissions here: For Cortex XSOAR 6, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.x/Cortex-XSOAR-Playbook-Design-Guide/Automations for Cortex XSOAR 8 Cloud, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/8/Cortex-XSOAR-Cloud-Documentation/Create-a-script for Cortex XSOAR 8 On-prem, see the https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/8.7/Cortex-XSOAR-On-prem-Documentation/Create-a-script.
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | |
Cortex XSOAR Version | 6.0.0 |
#
Used InThis script is used in the following playbooks and scripts.
- Integrations and Playbooks Health Check - Running Scripts
#
InputsArgument Name | Description |
---|---|
query | The query by which to retrieve failed tasks. Optional. The default value is "-status:closed" |
rest_api_instance | The Rest API instance to use. |
max_incidents | Maximum number of incidents to query. Maximum is 1000. |
#
OutputsThere are no outputs for this script.
#
TroubleshootingMulti-tenant environments should be configured with the Cortex Rest API instance when using this automation. Make sure the Use tenant parameter (in the Cortex Rest API integration) is checked to ensure that API calls are made to the current tenant instead of the master tenant.