> [!WARNING]
>
> **Preview**
>
>
> This feature is
>
> subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the
> [Service Specific
> Terms](https://docs.cloud.google.com/terms/service-terms#1).
>
> Pre-GA features are available "as is" and might have limited support.
>
> For more information, see the
> [launch stage descriptions](https://cloud.google.com/products/#product-launch-stages).

After you create a high availability controller, you can modify its description
or initiation method for failovers at any time. To change any other property in
a high availability controller, you must delete and recreate the controller.
Because Compute Engine blocks update requests while a managed virtual machine
(VM) instance runs, you must
[stop the VM](https://docs.cloud.google.com/compute/docs/instances/stop-start-instance.md.txt) before you
[update its properties](https://docs.cloud.google.com/compute/docs/instances/update-instance-properties.md.txt).

This document explains how to modify a high availability controller. For more
information about the requirements and limitations that apply when you manage
high availability controllers, see
[About high availability controllers](https://docs.cloud.google.com/compute/docs/instances/about-ha-controllers.md.txt).

## Before you begin

- If you haven't already, set up [authentication](https://docs.cloud.google.com/compute/docs/authentication.md.txt). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:

  Select the tab for how you plan to use the samples on this page:

  ### gcloud

  1.
     [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.

     After installation,
     [initialize](https://docs.cloud.google.com/sdk/docs/initializing) the Google Cloud CLI by running the following command:

     ```bash
     gcloud init
     ```


     If you're using an external identity provider (IdP), you must first
     [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud.md.txt).

     > [!NOTE]
     > **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.

  2. [Set a default region and zone](https://docs.cloud.google.com/compute/docs/gcloud-compute.md.txt#set_default_zone_and_region_in_your_local_client).

  ### REST


  To use the REST API samples on this page in a local development environment, you use the
  credentials you provide to the gcloud CLI.
  1. [Install](https://docs.cloud.google.com/sdk/docs/install) the Google Cloud CLI.
  2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](https://docs.cloud.google.com/iam/docs/workforce-log-in-gcloud.md.txt).


  For more information, see
  [Authenticate for using REST](https://docs.cloud.google.com/docs/authentication/rest.md.txt)
  in the Google Cloud authentication documentation.

### Required roles


To get the permissions that
you need to modify a high availability controller,

ask your administrator to grant you the
[Compute Instance Admin (v1)](https://docs.cloud.google.com/iam/docs/roles-permissions/compute.md.txt#compute.instanceAdmin.v1) (`roles/compute.instanceAdmin.v1`) IAM role on the project.


For more information about granting roles, see [Manage access to projects, folders, and organizations](https://docs.cloud.google.com/iam/docs/granting-changing-revoking-access.md.txt).


This predefined role contains

the permissions required to modify a high availability controller. To see the exact permissions that are
required, expand the **Required permissions** section:


#### Required permissions

The following permissions are required to modify a high availability controller:

- To modify the description or initiation method for failovers for a high availability controller: `compute.haControllers.update`


You might also be able to get
these permissions
with [custom roles](https://docs.cloud.google.com/iam/docs/creating-custom-roles.md.txt) or
other [predefined roles](https://docs.cloud.google.com/iam/docs/roles-overview.md.txt#predefined).

## Modify a high availability controller

To modify the description, the initiation method for failovers, or both
properties in an existing high availability controller, select one of the
following options:

### gcloud

To modify the description, the initiation method for failovers, or both
properties in an existing high availability controller, use the
[`gcloud preview compute ha-controllers update` command](https://docs.cloud.google.com/sdk/gcloud/reference/preview/compute/ha-controllers/update)
with one of the following flags:

- To modify the description for your high availability controller,
  include the `--description` flag:

      gcloud preview compute ha-controllers update HA_CONTROLLER_NAME \
          --region=REGION \
          --description="DESCRIPTION"

- To modify the initiation method for failovers for your high
  availability controller, include the `--failover-initiation` flag:

      gcloud preview compute ha-controllers update HA_CONTROLLER_NAME \
          --region=REGION \
          --failover-initiation=FAILOVER_INITIATION

Replace the following:

- `HA_CONTROLLER_NAME`: the name of the high availability
  controller that you want to modify.

- `REGION`: the region where the high availability
  controller exists.

- `DESCRIPTION`: an updated description for the high
  availability controller.

- `FAILOVER_INITIATION`: how the high availability
  controller triggers a failover. Specify one of the following values:

  - To trigger failovers when a zonal outage occurs, the VM remains in
    the `REPAIRING` state for over 10 minutes, or you request a
    failover: `automatic`

  - To trigger failovers only when you request them: `manual-only`

### REST

To modify the description, the initiation method for failovers, or both
properties in an existing high availability controller, make a `PATCH`
request to the
[preview `haControllers.patch` method](https://docs.cloud.google.com/compute/docs/reference/rest/2026-10-01-preview/haControllers/patch.md.txt)
with the `$apiVersion=2026-10-01-preview` query parameter in the request
URL. In the request body, include one of the following fields:

- To modify the description for your high availability controller,
  include the `updateMask=description` query parameter in the request URL
  and the `description` field in the request body:

      PATCH https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/haControllers/HA_CONTROLLER_NAME?updateMask=description&$apiVersion=2026-10-01-preview

      {
        "name": "HA_CONTROLLER_NAME",
        "description": "DESCRIPTION"
      }

- To modify the initiation method for failovers for your high
  availability controller, include the `updateMask=failoverInitiation`
  query parameter in the request URL and the `failoverInitiation` field in
  the request body:

      PATCH https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/haControllers/HA_CONTROLLER_NAME?updateMask=failoverInitiation&$apiVersion=2026-10-01-preview

      {
        "name": "HA_CONTROLLER_NAME",
        "failoverInitiation": "FAILOVER_INITIATION"
      }

Replace the following:

- `PROJECT_ID`: the ID of your project.

- `REGION`: the region where the high availability
  controller exists.

- `HA_CONTROLLER_NAME`: the name of the high availability
  controller that you want to modify.

- `DESCRIPTION`: an updated description for the high
  availability controller.

- `FAILOVER_INITIATION`: how the high availability
  controller triggers a failover. Specify one of the following values:

  - To trigger failovers when a zonal outage occurs, the VM remains in
    the `REPAIRING` state for over 10 minutes, or you request a
    failover: `AUTOMATIC`

  - To trigger failovers only when you request them: `MANUAL_ONLY`

## What's next

- [View high availability controllers](https://docs.cloud.google.com/compute/docs/instances/view-ha-controllers.md.txt)

- [Trigger a failover for a high availability controller](https://docs.cloud.google.com/compute/docs/instances/trigger-ha-controller-failover.md.txt)

- [Delete a high availability controller](https://docs.cloud.google.com/compute/docs/instances/delete-ha-controller.md.txt)