Skip to content

Update FalconSession

bk-cs edited this page Jan 17, 2023 · 20 revisions

Update-FalconSession

SYNOPSIS

Refresh a single-host or batch Real-time Response session to prevent expiration

DESCRIPTION

Real-time Response sessions expire after 5 minutes by default. Any commands that were issued to a session that take longer than 5 minutes will not return results without refreshing the session to keep it alive until the command process completes.

Requires 'Real Time Response: Read'.

PARAMETERS

Name Type Min Max Allowed Pipeline PipelineByName Description
QueueOffline Boolean Add non-responsive hosts to the offline queue
HostToRemove String[] Host identifier(s) to remove from a batch Real-time Response session
Timeout Int32 1 600 Length of time to wait for a result, in seconds [default: 30]
HostId String X X Host identifier, for a single-host session
BatchId String X Batch session identifier

SYNTAX

Update-FalconSession [[-QueueOffline] <Boolean>] -HostId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
Update-FalconSession [[-QueueOffline] <Boolean>] [[-HostToRemove] <String[]>] [[-Timeout] <Int32>] -BatchId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

SDK Reference

falconpy

RTR_PulseSession
BatchRefreshSessions

USAGE

Refresh a batch session to prevent expiration

NOTE: Required when you expect to exceed the default session expiration time (5 minutes).

Update-FalconSession -BatchId $Batch.batch_id

Refresh a single-host session to prevent expiration

NOTE: Required when you expect to exceed the default session expiration time (5 minutes).

Update-FalconSession -SessionId $Session.session_id

See Start-FalconSession.

2023-01-17: PSFalcon v2.2.4

Clone this wiki locally