icinga-powershell-framework/lib/core/tools/Show-IcingaDirectorSelfServiceKey.psm1
2019-12-12 16:00:39 +01:00

11 lines
348 B
PowerShell

function Show-IcingaDirecorSelfServiceKey()
{
$Path = 'IcingaDirector.SelfService.ApiKey';
$Value = Get-IcingaPowerShellConfig $Path;
if ($null -ne $Value) {
Write-Host ([string]::Format('Self-Service Key: "{0}"', $Value));
} else {
Write-Host 'There is no Self-Service Api key configured on this system';
}
}