Skip to content

Get-S1AvailableActions

SYNOPSIS

Retrieve available actions for SentinelOne agents.

SYNTAX

Get-S1AvailableActions [-AgentID] <String[]> [<CommonParameters>]

DESCRIPTION

This function retrieves the list of available actions for specified SentinelOne agents. It sends a GET request to the `/web/api/v2.1/private/agents/available-actions` endpoint and returns the data. Examples of actions include initiating scans, fetching logs, decommissioning agents, and more.

EXAMPLES

EXAMPLE 1

Get-S1AvailableActions -AgentID @("agent1", "agent2")

Retrieves the available actions for the specified agents.

EXAMPLE 2

"agent1" | Get-S1AvailableActions

Retrieves the available actions for the agent provided through the pipeline.

PARAMETERS

-AgentID

The IDs of the agents for which to retrieve available actions.

Type: String[]
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES