Get-vPenTestUriParameter

SYNOPSIS

Gets the query string parameters from a public function

SYNTAX

__AllParameterSets

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

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Get-vPenTestUriParameter 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 switches (AllResults & Raw), and any parameter used elsewhere in the request (path & header parameters) are removed

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

EXAMPLES

EXAMPLE 1

Get-vPenTestUriParameter -BoundParameter $PSBoundParameters -Exclude 'AssessmentId' -NameMap @{ PerPage = 'per_page' }

Returns a hashtable of all bound parameters except common parameters & AssessmentId where PerPage is renamed to the per_page API parameter name

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

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