Get-RocketCyberSuppressionRule
SYNOPSIS
Gets suppression rules from the RocketCyber API
SYNTAX
Index (Default)
Get-RocketCyberSuppressionRule [-AccountId <long[]>] [-UserId <long>] [-RuleId <long[]>]
[-RuleName <string[]>] [-Status <string>] [-StopDate <string>] [-UpdatedAt <string>]
[-ModifiedBy <long[]>] [-Config] [-Page <int>] [-PageSize <int>] [-Sort <string[]>] [-AllResults]
ById
Get-RocketCyberSuppressionRule -ID <long> -UserId <long> [-AccountId <long[]>]
ALIASES
This cmdlet has the following aliases,
- Get-RCSuppressionRule
DESCRIPTION
The Get-RocketCyberSuppressionRule cmdlet gets suppression rules from all or a defined account ID, or a single suppression rule by its ID
Parameter set [ Index ] - The Get-RocketCyberSuppressionRule cmdlet invokes the GET method of the /v3/suppression/rules endpoint
Parameter set [ ById ] - The Get-RocketCyberSuppressionRule cmdlet invokes the GET method of the /v3/suppression/rule/{ruleId} endpoint
EXAMPLES
EXAMPLE 1
Get-RocketCyberSuppressionRule
Gets the first 1000 suppression rules from all accounts accessible by the API key
EXAMPLE 2
Get-RocketCyberSuppressionRule -AccountId 12345 -Status active -AllResults
Gets every active suppression rule from account 12345
EXAMPLE 3
Get-RocketCyberSuppressionRule -ID 100 -UserId 563
Gets the suppression rule with the ID 100, the RocketCyber API requires a user ID for this request
PARAMETERS
-AccountId
The account ID associated to the suppression rule
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: ById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
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: Index
Position: Named
IsRequired: false
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: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ID
The ID of a single suppression rule to return
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ModifiedBy
Filters the suppression rules by the ID of the user that last modified them
Multiple comma separated values can be inputted
Type: System.Int64[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
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: Index
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: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-RuleId
Filters the suppression rules by rule ID
Multiple comma separated values can be inputted
Type: System.Int64[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-RuleName
Filters the suppression rules by rule name
Multiple comma separated values can be inputted
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
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: ruleId:desc modifiedBy:asc
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Status
The status of the suppression rules to request
Allowed values: ‘active’, ‘expired’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-StopDate
This returns suppression rules that expire between the start and end date
Both the start and end dates are optional, but at least one is required to use this parameter
| Start Date | End Date |
Example: 2023-01-01|2023-02-01 2023-01-01| |2023-02-01
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-UpdatedAt
This returns suppression rules that were modified between the start and end date
Both the start and end dates are optional, but at least one is required to use this parameter
| Start Date | End Date |
Example: 2023-01-01|2023-02-01 2023-01-01| |2023-02-01
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Index
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
Required when a single suppression rule is requested with the ID parameter, the modifiedBy value of a suppression rule is a valid user ID
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ById
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Index
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/suppression/rules Endpoint : GET /v3/suppression/rule/{ruleId}