mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
12 lines
348 B
PowerShell
12 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';
|
||
|
|
}
|
||
|
|
}
|