gcloud compute http-health-checks create NAME [--check-interval=CHECK_INTERVAL; default="5s"] [--description=DESCRIPTION] [--healthy-threshold=HEALTHY_THRESHOLD; default=2] [--host=HOST] [--port=PORT; default=80] [--request-path=REQUEST_PATH; default="/"] [--timeout=TIMEOUT; default="5s"] [--unhealthy-threshold=UNHEALTHY_THRESHOLD; default=2] [GCLOUD_WIDE_FLAG …]
health-checks create http instead.
For more information about the differences between legacy and non-legacy health checks see: https://cloud.google.com/load-balancing/docs/health-check-concepts#category_and_protocol
For information about what type of health check to use for a particular load balancer, see: https://cloud.google.com/load-balancing/docs/health-check-concepts#lb_guideNAME--check-interval=CHECK_INTERVAL; default="5s"10s will run the check every 10 seconds.
The default value is 5s. See $ gcloud topic datetimes for
information on duration formats.
--description=DESCRIPTION--healthy-threshold=HEALTHY_THRESHOLD; default=2--host=HOST--port=PORT; default=80--request-path=REQUEST_PATH; default="/"/healthcheck. The default value is
``/´´.
--timeout=TIMEOUT; default="5s"10s will
cause the check to wait for 10 seconds before considering the request a failure.
The default value is 5s. See $ gcloud topic datetimes for
information on duration formats.
--unhealthy-threshold=UNHEALTHY_THRESHOLD; default=2--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha compute http-health-checks creategcloud beta compute http-health-checks creategcloud preview compute http-health-checks create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.