AvantGuard - SentinelOne icon

AvantGuard - SentinelOne

AvantGuard - SentinelOne

Actions682

Overview

This node operation allows users to create or post remote operational scripts via a web API. It supports defining scripts with various scope levels (site, account, global), script types (artifact collection, data collection, action), and detailed metadata such as OS types, input requirements, and script content. It is useful for automating remote operations, deploying scripts across different environments, or managing script packages with specific runtime and expiration settings.

Properties

Name Meaning
Scope Level Defines the scope at which the script applies, such as site, account, or global.
Script Type Specifies the type of script being posted, such as artifact collection, data collection, or action.
Script Name The name identifier for the script.
Os Types Specifies the operating system types the script targets, e.g., macOS, Linux.
Input Required Boolean indicating whether the script requires input to run.
Additional Body Fields Optional additional parameters for the script, including scope ID, description, package size limits, expiration settings, input examples and instructions, script content, duplication flags, console data, encoding flags, and file attachments.

Output

JSON

  • response - The JSON response from the API after posting the remote ops script, typically including status, script ID, or error messages.

Dependencies

  • Requires an API key credential for authentication to the AvantGuard SentinelOne API.
  • Depends on the '@avantguardllc/n8n-openapi-node' package for API interaction.

Troubleshooting

  • Ensure all required fields (Scope Level, Script Type, Script Name, OS Types, Input Required) are provided; missing required fields will cause errors.
  • Verify that the API credentials are correctly configured and have sufficient permissions to post scripts.
  • If uploading binary files (Package File or File), ensure the binary data is correctly referenced and accessible.
  • Check that the 'originalScriptId' is valid when using duplication to avoid referencing non-existent scripts.
  • Timeout errors may occur if 'scriptRuntimeTimeoutSeconds' is set too low for the script execution time.
  • Encoding flags must match the actual encoding of the script content to prevent content corruption.

Discussion