SentinelOne icon

SentinelOne

SentinelOne Management Console API specification.

Actions281

RemoteScripts → Get scripts

AI-generated

Overview

This node interacts with the SentinelOne Management Console API to retrieve remote scripts from the Script Library. It supports fetching multiple pages of scripts with pagination options and filtering based on various criteria such as cursor position, script type, account IDs, site IDs, OS types, and sorting parameters. This node is useful for automating the retrieval and management of remote scripts in SentinelOne environments, enabling integration with workflows that require script data for security automation or auditing.

Use Case Examples

  1. Retrieve all remote scripts available in the SentinelOne Script Library for auditing purposes.
  2. Fetch remote scripts filtered by script type and OS type to automate deployment or analysis.

Properties

Name Meaning
Return All Whether to return all results or only a single page. When disabled, no pagination parameters are sent and only one page of results is returned.
Additional Fields Optional filters and parameters to refine the script retrieval, including cursor for pagination, script type, account IDs, sort order, query string, sort by column, site IDs, OS types, limit on number of items, skip count, skip offset, and count only flag.

Output

JSON

  • id - Unique identifier of the remote script.
  • name - Name of the remote script.
  • type - Type/category of the remote script.
  • accountId - Account ID associated with the script.
  • siteId - Site ID associated with the script.
  • osType - Operating system type the script is intended for.
  • content - Content or body of the script.
  • createdAt - Timestamp when the script was created.
  • updatedAt - Timestamp when the script was last updated.

Dependencies

  • an API key credential for SentinelOne Management Console

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to access remote scripts.
  • Check the pagination settings if not all scripts are returned when expected.
  • Verify that the filter parameters are correctly formatted and valid according to the SentinelOne API documentation.
  • Enable debug mode to see the actual API request and response for troubleshooting.

Links

Discussion