Switchover Pairs (switchover/v1)
Trigger a failover on a switchover pair
Changed on
Triggers a failover (or switchback) on the switchover pair. Optionally promotes a specific member to active and/or selects the failover semantics (PLANNED, UNPLANNED, or RESTORE). Returns the updated SwitchoverPair whose status.phase transitions to UPDATING.
post/switchover/v1/switchover-pairs/{id}:failover
Request
- Base URLhttps://api.confluent.cloud
- URLhttps://api.confluent.cloud/switchover/v1/switchover-pairs/{id}:failover
- Auth
- HTTP basic
- or HTTP basic
Path parameters
idstring required
The unique identifier for the switchover pair.
Request body
Example request
{
"spec": {
"environment_crn": "crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/environment=env-00000",
"active_member": "east",
"failover_type": "PLANNED"
}
}Response
The failover has been accepted; the switchover pair transitions to UPDATING while the operation completes asynchronously.
Example response
{
"id": "dlz-f3a90de",
"metadata": {
"self": "https://api.confluent.cloud/switchover/v1/switchover-pairs/sw-12345",
"resource_name": "crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/switchover-pair=sw-12345",
"created_at": "2006-01-02T15:04:05-07:00",
"updated_at": "2006-01-02T15:04:05-07:00",
"deleted_at": "2006-01-02T15:04:05-07:00"
},
"spec": {
"environment_crn": "crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/environment=env-00000",
"display_name": "prod-kafka-dr",
"members": [
{
"name": "west",
"member_crn": "crn://confluent.cloud/organization=9bb441c4-edef-46ac-8a41-c49e44a3fd9a/environment=env-00000/cloud-cluster=lkc-00000",
"location": {
"cloud": "aws",
"region": "us-west-2"
}
}
],
"active_member": "west",
"first_active": "west",
"failover_type": "PLANNED"
},
"status": {
"phase": "READY_TO_FAILOVER",
"conditions": [
{
"member": "east",
"type": "ResourceValidationComplete",
"status": "True",
"reason": "Reconciled",
"message": "The resource is ready."
}
]
}
}Changes
- info
endpoint added
- info