Get-RocketCyberUriParameter

SYNOPSIS

Gets the query string parameters from a public function

SYNTAX

__AllParameterSets

Get-RocketCyberUriParameter [-BoundParameter] <hashtable> [[-Exclude] <string[]>]
 [[-NameMap] <hashtable>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-RocketCyberUriParameter cmdlet filters the bound parameters of a public function down to only the ones that are sent as query string parameters

PowerShell common parameters, module parameters (AllResults), and any parameter used elsewhere in the request (such as path parameters) are removed

This is an internal helper function that is used by all public functions

EXAMPLES

EXAMPLE 1

Get-RocketCyberUriParameter -BoundParameter $PSBoundParameters -Exclude 'RuleId'

Returns a hashtable of all bound parameters except common parameters & RuleId

EXAMPLE 2

Get-RocketCyberUriParameter -BoundParameter $PSBoundParameters -NameMap @{ 'MACAddress' = 'macAddress' }

Returns a hashtable of all bound parameters & sends the MACAddress parameter as macAddress

PARAMETERS

-BoundParameter

The $PSBoundParameters hashtable of the calling function

Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Exclude

Names of parameters that are not query string parameters

Type: System.String[]
DefaultValue: '@()'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-NameMap

Hashtable that maps a PowerShell parameter name to the API parameter name

Parameters without a mapping are sent using their PascalCase name with the first letter lowercased (AccountId = accountId). Names that are all uppercase are lowercased (ID = id)

Type: System.Collections.Hashtable
DefaultValue: '@{}'
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  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

OUTPUTS

System.Collections.Hashtable

NOTES

N/A