[egulu CLI reference](../index.md) / [egulu valkey-instances](index.md)

# egulu valkey-instances failover

POST /v1/projects/{project}/locations/{location}/valkeyInstances/{valkeyInstance}:failover

```sh
egulu valkey-instances failover [options]
```

## API operation

[ValkeyHa_failover](../../api/inmemory/ValkeyHa_failover.md): `POST /v1/projects/{project}/locations/{location}/valkeyInstances/{valkeyInstance}:failover` (inmemory module)

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--expected-primary` | value | no | expectedPrimary |
| `--location` | value | yes | location |
| `--project` | value | yes | project |
| `--reason` | value | no | reason |
| `--request-id` | value | no | requestId |
| `--target-member` | value | no | targetMember |
| `--valkey-instance` | value | yes | valkeyInstance |

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