Public/Get-DPASetting.ps1
# .ExternalHelp IdentityCommand.DPA-help.xml function Get-DPASetting { [CmdletBinding()] param( [parameter( Mandatory = $false, ValueFromPipelinebyPropertyName = $true )] [ValidateSet('mfaCaching', 'sshMfaCaching', 'rdpMfaCaching', 'adbMfaCaching', 'k8sMfaCaching', 'sshCommandAudit', 'standingAccess', 'rdpFileTransfer', 'certificateValidation', 'rdpKeyboardLayout', 'rdpRecording')] [String]$FeatureName ) BEGIN { }#begin PROCESS { $URI = "$($ISPSSSession.tenant_url)/api/settings/$FeatureName" #Send Request $result = Invoke-IDRestMethod -Uri $URI -Method GET if ($null -ne $result) { switch ($PSBoundParameters.Keys) { 'FeatureName' { $result = $result | Select-Object -ExpandProperty $FeatureName } } $result } }#process END { }#end } |