[egulu CLI reference](../index.md) / [egulu postgres-clusters](index.md)

# egulu postgres-clusters switchover

POST /v1/projects/{project}/locations/{location}/postgresClusters/{cluster}:switchover

```sh
egulu postgres-clusters switchover [options]
```

## API operation

[PostgresOperating_switchover](../../api/databases/PostgresOperating_switchover.md): `POST /v1/projects/{project}/locations/{location}/postgresClusters/{cluster}:switchover` (databases module)

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--cluster` | value | yes | cluster |
| `--location` | value | yes | location |
| `--project` | value | yes | project |
| `--reason` | value | no | reason |
| `--request-id` | value | no | requestId |
| `--target-instance-id` | value | no | targetInstanceId |

The [global options](../index.md) apply too.
