TroubleshootGetCommandandArgs
Gets a command with its arguments, validates the command and the arguments, and then parses it to use in the Cortex XSOAR context.
python · Troubleshoot
Details
| ID | TroubleshootGetCommandandArgs |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10116658 |
| Tags | troubleshoot |
README
Gets a command with its arguments, validates the command and the arguments, and then parses it to use in the Cortex XSOAR context.
Script Data
| Name | Description |
|---|---|
| Script Type | python3 |
| Tags | troubleshoot |
| Cortex XSOAR Version | 5.0.0 |
Used In
This script is used in the following playbooks and scripts.
- Integration Troubleshooting
Inputs
| Argument Name | Description |
|---|---|
| instance_name | Instance on which to check the command. |
| command_line | Command line to process. |
Outputs
| Path | Description | Type |
|---|---|---|
| CommandArgs.instance_name | The instance name. | String |
| CommandArgs.command | The command. | String |
| CommandArgs.Arguments | The arguments in the command. | String |
| CommandArgs.Arguments.using | The instance name. All other arguments are dynamically provided. | String |
args: - description: Instance on which to check the command. name: instance_name - description: Command line to process. name: command_line comment: Gets a command with its arguments, validates the command and the arguments, and then parses it to use in the Cortex XSOAR context. commonfields: id: TroubleshootGetCommandandArgs version: -1 name: TroubleshootGetCommandandArgs outputs: - contextPath: CommandArgs.instance_name description: The instance name. type: String - contextPath: CommandArgs.command description: The command. type: String - contextPath: CommandArgs.Arguments description: The arguments in the command. type: String - contextPath: CommandArgs.Arguments.using description: The instance name. All other arguments are dynamically provided. type: String script: '-' subtype: python3 tags: - troubleshoot timeout: '0' type: python dockerimage: demisto/python3:3.12.13.10116658 fromversion: 5.0.0 tests: - No tests (auto formatted)