Get-RocketCyberEvent

SYNOPSIS

Gets app event information from the RocketCyber API

SYNTAX

IndexByEvent (Default)

Get-RocketCyberEvent -AppId <int> [-Verdict <string[]>] [-AccountId <long[]>] [-UserId <long>]
 [-DeviceId <string>] [-Details <string>] [-Dates <string>] [-Config] [-Page <int>]
 [-PageSize <int>] [-Sort <string[]>] [-AllResults]

IndexByEventSummary

Get-RocketCyberEvent -EventSummary [-AccountId <long[]>]

ALIASES

This cmdlet has the following aliases,

  • Get-RCEvent

DESCRIPTION

The Get-RocketCyberEvent cmdlet gets app event information for events associated to all or a defined account ID

Use the Get-RocketCyberApp cmdlet to get app IDs

Parameter set [ IndexByEvent ] - The Get-RocketCyberEvent cmdlet invokes the GET method of the /v3/events endpoint

Parameter set [ IndexByEventSummary ] - The Get-RocketCyberEvent cmdlet invokes the GET method of the /v3/events/summary endpoint

EXAMPLES

EXAMPLE 1

Get-RocketCyberEvent -AppId 7

Gets the first 1000 AppId 7 events from all accounts accessible by the API key

EXAMPLE 2

Get-RocketCyberEvent -AccountId 12345 -AppId 7

Gets the first 1000 AppId 7 events from account 12345

EXAMPLE 3

Get-RocketCyberEvent -AppId 7 -Sort dates:desc

Gets the first 1000 AppId 7 events and the data set is sorted by dates in descending order

EXAMPLE 4

Get-RocketCyberEvent -AppId 7 -Verdict suspicious -AllResults

Gets every suspicious AppId 7 event

EXAMPLE 5

Get-RocketCyberEvent -EventSummary -AccountId 12345

Gets a summary of the events of each app from account 12345

PARAMETERS

-AccountId

The account ID associated to the event

If not provided, data will be pulled for all accounts accessible by the API key

Multiple comma separated values can be inputted

Type: System.Int64[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEventSummary
  Position: Named
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AllResults

Returns all items from an endpoint by requesting every page of the results

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-AppId

The app ID

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Config

Includes the config object in the response

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Dates

The date range for event detections

Both the start and end dates are optional, but at least one is required to use this parameter

Start Time End Time

Example: 2022-05-09|2022-05-10 2022-05-09| |2022-05-10

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Details

This parameter allows users to target specific attributes within the details object

This requires you to define the attribute path (period separated) and the expected value

The value can include wildcards (*)

Example: (AppId 7) attributes.direction:outbound

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-DeviceId

The device ID associated to the event

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-EventSummary

Shows a summary of events for each app

AccountId cannot be an array when using this parameter

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEventSummary
  Position: Named
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Page

The target page of data

This is used with the PageSize parameter to determine how many and which items to return

Default value: 1

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-PageSize

The number of items to return from the data set

Default value: 1000

Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Sort

The sort order for the items queried

Not all values can be sorted

Multiple comma separated values can be inputted

Example: verdict:asc dates:desc

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-UserId

The RocketCyber user ID, when defined timezone conversions are performed

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Verdict

The verdict of the event

Multiple comma separated values can be inputted

Allowed values: ‘informational’, ‘suspicious’, ‘malicious’

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: IndexByEvent
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

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

INPUTS

System.Int64[]

OUTPUTS

NOTES

Endpoint : GET /v3/events Endpoint : GET /v3/events/summary

As of 2023-03 Other than the parameters shown here, app specific parameters vary from app to app, however I have not found any documentation around this