< Back

Remove-GceHealthCheck

Mon Jan 13, 2020 11:36 pm

NAME Remove-GceHealthCheck



SYNOPSIS

Removes a Google Compute Engine health check.





SYNTAX

Remove-GceHealthCheck [-Project <string>] [-Name] <string> -Http <SwitchParameter> [<CommonParameters>]



Remove-GceHealthCheck [-Project <string>] [-Name] <string> -Https <SwitchParameter> [<CommonParameters>]



Remove-GceHealthCheck [-Http <SwitchParameter>] [-HttpObject] <HttpHealthCheck> [<CommonParameters>]



Remove-GceHealthCheck [-Https <SwitchParameter>] [-HttpsObject] <HttpsHealthCheck> [<CommonParameters>]





DESCRIPTION

Removes a Google Compute Engine Health check. Use this cmdlet to remove both HTTP and HTTPS health checks.





PARAMETERS

-Project <string>

The name of the project to remove the health check from. 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 remove.



Required? true

Position? 0

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Http <SwitchParameter>

If set, will remove a health check that uses HTTP.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Https <SwitchParameter>

If set, will remove a health check that uses HTTPS.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-HttpObject <HttpHealthCheck>

An object defining the HTTP health check to remove.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-HttpsObject <HttpsHealthCheck>

An object defining the HTTPS health check to remove.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

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

Google.Apis.Compute.v1.Data.HttpHealthCheck

An object defining the HTTP health check to remove.



Google.Apis.Compute.v1.Data.HttpsHealthCheck

An object defining the HTTPS health check to remove.





OUTPUTS



---------- EXAMPLE 1 ----------



PS C:\\> Remove-GceHealthCheck "my-health-check" -Project "my-project" -Http



Remove HTTP health check "my-health-check" from project "my-project".

---------- EXAMPLE 2 ----------



PS C:\\> Remove-GceHealthCheck "my-health-check" -Https



Remove HTTPS health check "my-health-check" from the project in the Cloud SDK config.

---------- EXAMPLE 3 ----------



PS C:\\> Get-GceHealthCheck -Project "my-project | Remove-GceHealthCheck



Remove all health checks from project "my-project".



RELATED LINKS

[HealthCheck resource definition]

(https://cloud.google.com/compute/docs/r ... s#resource)