gcloud compute http-health-checks update NAME [--check-interval=CHECK_INTERVAL] [--description=DESCRIPTION] [--healthy-threshold=HEALTHY_THRESHOLD] [--host=HOST] [--port=PORT] [--request-path=REQUEST_PATH] [--timeout=TIMEOUT] [--unhealthy-threshold=UNHEALTHY_THRESHOLD] [GCLOUD_WIDE_FLAG …]
gcloud compute http-health-checks update is used to update an
existing legacy HTTP health check. Only arguments passed in will be updated on
the health check. Other attributes will remain unaffected.
NAME--check-interval=CHECK_INTERVAL10s will run the check every 10 seconds.
See $ gcloud topic datetimes
for information on duration formats.
--description=DESCRIPTION--healthy-threshold=HEALTHY_THRESHOLD--host=HOST--port=PORT--request-path=REQUEST_PATH/healthcheck.
--timeout=TIMEOUT10s will
cause the check to wait for 10 seconds before considering the request a failure.
Valid units for this flag are ``s´´ for seconds and
``m´´ for minutes.
--unhealthy-threshold=UNHEALTHY_THRESHOLD--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 updategcloud beta compute http-health-checks updategcloud preview compute http-health-checks update
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.