mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 15:19:58 -05:00
11 lines
379 B
PowerShell
11 lines
379 B
PowerShell
function Show-IcingaDirecorSelfServiceKey()
|
|
{
|
|
$Path = 'IcingaDirector.SelfService.ApiKey';
|
|
$Value = Get-IcingaPowerShellConfig $Path;
|
|
|
|
if ($null -ne $Value) {
|
|
Write-IcingaConsoleNotice ([string]::Format('Self-Service Key: "{0}"', $Value));
|
|
} else {
|
|
Write-IcingaConsoleWarning 'There is no Self-Service Api key configured on this system';
|
|
}
|
|
}
|