< Back
Get-GceHealthCheck
Post
NAME Get-GceHealthCheck
SYNOPSIS
Gets Google Compute Engine health checks.
SYNTAX
Get-GceHealthCheck [-Project <string>] [-Name] <string> [-Http <SwitchParameter>] [-Https <SwitchParameter>]
[<CommonParameters>]
DESCRIPTION
Gets Google Compute Engine health checks. This cmdlet can be used to retrieve both HTTP and HTTPS health checks.
It can list all health checks of a project, or get a health check by name.
PARAMETERS
-Project <string>
The name of the project to get the health checks of. Defaults to the project in the Cloud SDK config.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the health check to get.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Http <SwitchParameter>
If set, will get health checks that use HTTP. If neither -Http nor -Https are set, Get-GceHealthCheck will
retrieve both.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Https <SwitchParameter>
If set, will get health checks that use HTTPS. If neither -Http nor -Https are set, Get-GceHealthCheck will
retrieve both.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
The name of the health check to get.
OUTPUTS
Google.Apis.Compute.v1.Data.HttpHealthCheck
Google.Apis.Compute.v1.Data.HttpsHealthCheck
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceHealthCheck -Project "my-project"
Gets all health checks of project "my-project".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceHealthCheck -Https
Gets all HTTPS health checks of the project in the Cloud SDK config.
---------- EXAMPLE 3 ----------
PS C:\\>; Get-GceHealthCheck "my-health-check" -Http
Gets the HTTP health check named "my-health-check" in the project of the Cloud SDK config.
RELATED LINKS
[HealthCheck resource definition]
(https://cloud.google.com/compute/docs/r ... s#resource)
SYNOPSIS
Gets Google Compute Engine health checks.
SYNTAX
Get-GceHealthCheck [-Project <string>] [-Name] <string> [-Http <SwitchParameter>] [-Https <SwitchParameter>]
[<CommonParameters>]
DESCRIPTION
Gets Google Compute Engine health checks. This cmdlet can be used to retrieve both HTTP and HTTPS health checks.
It can list all health checks of a project, or get a health check by name.
PARAMETERS
-Project <string>
The name of the project to get the health checks of. Defaults to the project in the Cloud SDK config.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <string>
The name of the health check to get.
Required? true
Position? 0
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Http <SwitchParameter>
If set, will get health checks that use HTTP. If neither -Http nor -Https are set, Get-GceHealthCheck will
retrieve both.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
-Https <SwitchParameter>
If set, will get health checks that use HTTPS. If neither -Http nor -Https are set, Get-GceHealthCheck will
retrieve both.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
The name of the health check to get.
OUTPUTS
Google.Apis.Compute.v1.Data.HttpHealthCheck
Google.Apis.Compute.v1.Data.HttpsHealthCheck
---------- EXAMPLE 1 ----------
PS C:\\> Get-GceHealthCheck -Project "my-project"
Gets all health checks of project "my-project".
---------- EXAMPLE 2 ----------
PS C:\\> Get-GceHealthCheck -Https
Gets all HTTPS health checks of the project in the Cloud SDK config.
---------- EXAMPLE 3 ----------
PS C:\\>; Get-GceHealthCheck "my-health-check" -Http
Gets the HTTP health check named "my-health-check" in the project of the Cloud SDK config.
RELATED LINKS
[HealthCheck resource definition]
(https://cloud.google.com/compute/docs/r ... s#resource)