Skip to main content

Cortex XDR - Execute snippet code script

This Playbook is part of the Cortex XDR by Palo Alto Networks Pack.#

Deprecated

Use the xdr-snippet-code-script-execute command instead.

Deprecated. Use the xdr-snippet-code-script-execute command instead. Initiates a new endpoint script execution action using the provided snippet code and retrieves the file results.

Dependencies#

This playbook uses the following sub-playbooks, integrations, and scripts.

Sub-playbooks#

  • Cortex XDR - Check Action Status

Integrations#

  • CortexXDRIR

Scripts#

This playbook does not use any scripts.

Commands#

  • xdr-get-script-execution-results
  • xdr-run-snippet-code-script

Playbook Inputs#


NameDescriptionDefault ValueRequired
endpoint_idA comma-separated list of endpoint IDs.Optional
snippet_codeSection of a script you want to initiate on an endpoint (e.g., print("7")).Optional

Playbook Outputs#


PathDescriptionType
PaloAltoNetworksXDR.ScriptResult.results._return_valueValue returned by the script in case the type is not a dictionary.unknown

Playbook Image#


Cortex XDR - Execute snippet code script