Get-APITCGUriParameter

SYNOPSIS

Gets the query string parameters from a public function

SYNTAX

__AllParameterSets

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

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

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

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

EXAMPLES

EXAMPLE 1

Get-APITCGUriParameter -BoundParameter $PSBoundParameters -Exclude 'DeviceUid'

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

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 (Filter = filter)

Switch parameters are converted to booleans

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