egulu CLI reference / egulu postgres-clusters
egulu postgres-clusters switchover
POST /v1/projects/{project}/locations/{location}/postgresClusters/{cluster}:switchover
egulu postgres-clusters switchover [options]
API operation
PostgresOperating_switchover: 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 apply too.