added pod to get-hvhealth
This commit is contained in:
@@ -10001,7 +10001,7 @@ function get-hvhealth {
|
|||||||
.PARAMETER Servicename
|
.PARAMETER Servicename
|
||||||
The name of the service to query the health for.
|
The name of the service to query the health for.
|
||||||
This will default to Connection server health.
|
This will default to Connection server health.
|
||||||
Available services are ADDomain,CertificateSSOConnector,ConnectionServer,EventDatabase,SAMLAuthenticator,SecurityServer,ViewComposer,VirtualCenter
|
Available services are ADDomain,CertificateSSOConnector,ConnectionServer,EventDatabase,SAMLAuthenticator,SecurityServer,ViewComposer,VirtualCenter,Pod
|
||||||
|
|
||||||
.PARAMETER HvServer
|
.PARAMETER HvServer
|
||||||
Reference to Horizon View Server to query the virtual machines from. If the value is not passed or null then
|
Reference to Horizon View Server to query the virtual machines from. If the value is not passed or null then
|
||||||
@@ -10035,7 +10035,7 @@ function get-hvhealth {
|
|||||||
param(
|
param(
|
||||||
|
|
||||||
[Parameter(Mandatory = $false)]
|
[Parameter(Mandatory = $false)]
|
||||||
[ValidateSet('ADDomain', 'CertificateSSOConnector', 'ConnectionServer', 'EventDatabase', 'SAMLAuthenticator', 'SecurityServer', 'ViewComposer', 'VirtualCenter')]
|
[ValidateSet('ADDomain', 'CertificateSSOConnector', 'ConnectionServer', 'EventDatabase', 'SAMLAuthenticator', 'SecurityServer', 'ViewComposer', 'VirtualCenter', 'pod')]
|
||||||
[string]
|
[string]
|
||||||
$Servicename = 'ConnectionServer',
|
$Servicename = 'ConnectionServer',
|
||||||
|
|
||||||
@@ -10075,6 +10075,9 @@ function get-hvhealth {
|
|||||||
'VirtualCenter' {
|
'VirtualCenter' {
|
||||||
$healthinfo=$services.VirtualCenterHealth.VirtualCenterHealth_List()
|
$healthinfo=$services.VirtualCenterHealth.VirtualCenterHealth_List()
|
||||||
}
|
}
|
||||||
|
'Pod' {
|
||||||
|
$healthinfo=$services.podhealth.PodHealth_List()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($healthinfo){
|
if ($healthinfo){
|
||||||
return $healthinfo
|
return $healthinfo
|
||||||
|
|||||||
Reference in New Issue
Block a user