gcloud alpha compute composite-health-checks update Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha compute composite-health-checks update - update a composite health check
- SYNOPSIS
gcloud alpha compute composite-health-checks update(COMPOSITE_HEALTH_CHECK:--region=REGION)(--description=DESCRIPTION--health-destination=HEALTH_DESTINATION--health-sources=HEALTH_SOURCES,[…])[--async][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Update a composite health check.- EXAMPLES
- The following command updates an existing composite health check:
gcloudalphacomputecomposite-health-checksupdate<COMPOSITE_HEALTH_CHECK_NAME>--region=<REGION>--health-destination=my-new-fr - POSITIONAL ARGUMENTS
- Composite health check resource - The name of the composite health check youwant to update. The arguments in this group can be used to specify theattributes of this resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.
To set the
projectattribute:- provide the argument
composite_health_checkon the command linewith a fully specified name; - provide the argument
--projecton the command line; - set the property
core/project.
This must be specified.
COMPOSITE_HEALTH_CHECK- ID of the composite health check or fully qualified identifier for the compositehealth check.
To set the
composite_health_checkattribute:- provide the argument
composite_health_checkon the command line.
This positional argument must be specified if any of the other arguments in thisgroup are specified.
- provide the argument
--region=REGION- The name of the Google Compute Engine region.
To set the
regionattribute:- provide the argument
composite_health_checkon the command linewith a fully specified name; - provide the argument
--regionon the command line; - set the property
compute/region.
- provide the argument
- provide the argument
- Composite health check resource - The name of the composite health check youwant to update. The arguments in this group can be used to specify theattributes of this resource. (NOTE) Some attributes are not given arguments inthis group but can be set in other ways.
- REQUIRED FLAGS
- At least one of these must be specified:
--description=DESCRIPTION- A textual description of this resource.
--health-destination=HEALTH_DESTINATION- URL to the destination resource. Must be set. Must be a ForwardingRule. TheForwardingRule must have load balancing scheme INTERNAL or INTERNAL_MANAGED andmust be regional and in the same region as the CompositeHealthCheck(cross-region deployment for INTERNAL_MANAGED is not supported). Can be mutated.
--health-sources=HEALTH_SOURCES,[…]- URLs to the HealthSource resources whose results are AND'ed. I.e. the aggregatedresult is HEALTHY only if all sources are HEALTHY. Must have at least 1. Mustnot have more than 10. Must be regional and in the same region as theCompositeHealthCheck. Can be mutated.
- At least one of these must be specified:
- OPTIONAL FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--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 helpfor details. - API REFERENCE
- This command uses the
compute/alphaAPI. The full documentation forthis API can be found at:https://cloud.google.com/compute/ - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudbetacomputecomposite-health-checksupdate
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-28 UTC.