Functions/Get-DqContext.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
. (Join-Path -Path $SharedTypesPath -ChildPath "DqConnectionTypes.ps1") Function Get-DqContext { <# .SYNOPSIS Deze functie vraagt de huidige verbindinggegevens op naar een DQ Monitor Webservice. .DESCRIPTION De Get-DqContext haalt verbindinggegevens op, die eerder is opgeslagen via Set-DqContext, over een DQ Monitor Webservice. .INPUTS Geen. .OUTPUTS Een [DqConnection] object. .EXAMPLE PS> Get-DqContext PortalUrl ApiUrl StsUrl ------ ------ ------ https://woongeluk.dq-monitor.nl/ https://woongeluk-api.dq-monitor.nl/api/ https://woongeluk-sts.dq-monitor.nl/oauth/ro .LINK Set-DqContent #> [OutputType([DqConnection])] [CmdletBinding()] Param() Validate-Context -ErrorAction Stop Return $DqConnectionSettings } |