# Update a Failover Group

Launch stage: GA

`PATCH /api/disaster-recovery/v1/{name=accounts/*/failover-groups/*}`

Update a failover group.

API scopes: disaster-recovery

Clouds: AWS, Azure

## Path parameters

- `name` (string, required, ID, Immutable)
  Fully qualified resource name in the format
   accounts/{account_id}/failover-groups/{failover_group_id}.

## Query parameters

- `update_mask` (string, required)
  Comma-separated list of fields to update.
- `etag` (string, optional)
  Optional opaque version string for optimistic locking, obtained from a prior read of
   the failover group. If provided, the update is rejected unless it matches the failover
   group's current etag. If omitted, the update proceeds without an optimistic-lock check.

## Request body

The failover group with updated fields. The name field identifies the resource
 and is populated from the URL path.
- `regions` (array of string, required, Immutable)
  List of all regions participating in this failover group.
- `workspace_sets` (array of object, required)
  Workspace sets, each containing workspaces that replicate to each other.
  - `name` (string, required)
    Resource name for this workspace set.
    Example: `accounting`
  - `workspace_ids` (array of string, required)
    Workspace IDs in this set. The system derives and validates regions.
     All workspaces must be in the Mission Critical tier.
  - `replicate_workspace_assets` (boolean, optional)
    Whether to enable control plane DR (notebooks, jobs, clusters, etc.) for this set.
     Defaults to false.
  - `stable_url_names` (array of string, optional)
    Resource names of stable URLs associated with this workspace set.
     Format: accounts/{account_id}/stable-urls/{stable_url_id}.
     The referenced stable URLs must already exist (via CreateStableUrl).
- `unity_catalog_assets` (object, optional)
  Unity Catalog replication configuration.
  - `location_mappings` (array of object, optional)
    Location mappings - storage URI per region for each location.
    - `name` (string, required)
      Resource name for this location.
      Example: `main-storage`
    - `uri_by_region` (array of object, required)
      URI for each region. Each entry maps a region name to a storage URI.
      - `region` (string, required)
        The region name.
        Example: `us-east-1`
      - `uri` (string, required)
        The storage URI for this region.
        Example: `s3://east/data`
  - `catalogs` (array of object, required)
    UC catalogs to replicate.
    - `name` (string, required)
      The name of the UC catalog to replicate.
  - `data_replication_workspace_set` (string, required)
    The workspace set whose workspaces will be used for data replication
     of all UC catalogs' underlying storage.
    Example: `accounting`
- `initial_primary_region` (string, required, Input only, Immutable)
  Initial primary region. Used only in Create requests to set the starting
   primary region. Not returned in responses.

## Returns

Returns the FailoverGroup object.

## Response

```json
{
  "name": "string",
  "effective_primary_region": "string",
  "regions": [
    "string"
  ],
  "workspace_sets": [
    {
      "name": "accounting",
      "workspace_ids": [
        "string"
      ],
      "replicate_workspace_assets": true,
      "stable_url_names": [
        "string"
      ]
    }
  ],
  "unity_catalog_assets": {
    "location_mappings": [
      {}
    ],
    "catalogs": [
      {}
    ],
    "data_replication_workspace_set": "accounting"
  },
  "state": "CREATING",
  "etag": "string",
  "create_time": "string",
  "update_time": "string",
  "replication_point": "string",
  "initial_replication_progress": {
    "completed": 0
  },
  "has_replication_point_blocking_errors": true
}
```

