gcloud alpha compute instance-groups managed set-autohealing

NAME
gcloud alpha compute instance-groups managed set-autohealing - set autohealing policy for managed instance group
SYNOPSIS
gcloud alpha compute instance-groups managed set-autohealingNAME[--initial-delay=INITIAL_DELAY][--health-check=HEALTH_CHECK    |--http-health-check=HTTP_HEALTH_CHECK    |--https-health-check=HTTPS_HEALTH_CHECK][--region=REGION    |--zone=ZONE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA)(DEPRECATED) Set autohealing policy formanaged instance group.

This command is deprecated and will not be promoted to GA. Please usegcloud beta instance-groups managed update instead.

gcloud alpha compute instance-groups managed set-autohealingupdates the autohealing policy for an existing managed instance group.

If health check is specified, the resulting autohealing policy will be triggeredby the health-check signal i.e. the autohealing action (RECREATE) on an instancewill be performed if the health-check signals that the instance is UNHEALTHY. Ifno health check is specified, the resulting autohealing policy will be triggeredby instance's status i.e. the autohealing action (RECREATE) on an instance willbe performed if the instance.status is not RUNNING.

POSITIONAL ARGUMENTS
NAME
Name of the managed instance group to operate on.
FLAGS
--initial-delay=INITIAL_DELAY
Specifies the number of seconds that a new VM takes to initialize and run itsstartup script. During a VM's initial delay period, the MIG ignores unsuccessfulhealth checks because the VM might be in the startup process. This prevents theMIG from prematurely recreating a VM. If the health check receives a healthyresponse during the initial delay, it indicates that the startup process iscomplete and the VM is ready. The value of initial delay must be between 0 and3600 seconds. The default value is 0. See $gcloud topic datetimes forinformation on duration formats.
At most one of these can be specified:
--health-check=HEALTH_CHECK
Name of the health check to operate on.
--http-health-check=HTTP_HEALTH_CHECK
(DEPRECATED) HTTP health check object used for autohealing instances in thisgroup.

HttpHealthCheck is deprecated. Use --health-check instead.

--https-health-check=HTTPS_HEALTH_CHECK
(DEPRECATED) HTTPS health check object used for autohealing instances in thisgroup.

HttpsHealthCheck is deprecated. Use --health-check instead.

At most one of these can be specified:
--region=REGION
Region of the managed instance group to operate on. If not specified, you mightbe prompted to select a region (interactive mode only).

A list of regions can be fetched by running:

gcloudcomputeregionslist

Overrides the defaultcompute/region property value for thiscommand invocation.

--zone=ZONE
Zone of the managed instance group to operate on. If not specified, you might beprompted to select a zone (interactive mode only).

A list of zones can be fetched by running:

gcloudcomputezoneslist

Overrides the defaultcompute/zone property value for this commandinvocation.

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 help for details.

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:
gcloudbetacomputeinstance-groupsmanagedset-autohealing

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-05-07 UTC.