# Failover a Failover Group to a new primary region

Launch stage: GA

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

Initiate a failover to a new primary region.

API scopes: disaster-recovery

Clouds: AWS, Azure

## Path parameters

- `name` (string, required, ID, Immutable)
  The fully qualified resource name of the failover group to failover.
   Format: accounts/{account_id}/failover-groups/{failover_group_id}.

## Request body

- `target_primary_region` (string, required)
  The target primary region. Must be one of the participating regions and different
   from the current effective_primary_region. Serves as an idempotency check.
- `etag` (string, optional)
  Opaque version string for optimistic locking. If provided, must match the
   current etag. If omitted, the failover proceeds regardless of current state.
- `failover_type` (string, required)
  The type of failover to perform.
  Possible values:
  - `FORCED`

## 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
}
```

