Managed Databases

Get database failover history

get/managed-databases/{md_uuid}/failovers

Changes of the primary server of a database with 3 servers: when a server started answering as primary and when one stopped, newest first. Empty for a single-server database. Reads can be served by the replicas through read_host; writes always go to endpoint_host.

Authorization

Authorization
Authorization*string

Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.

Path parameters

md_uuid*string

Query parameters

time_range?string

One of 24h, 7d, 30d, 90d (anything else is 24h)

Default"24h"

Responses

Successful Response

application/json

time_range*string
failovers*array<ManagedDatabaseFailoverOut>
Properties (3)
at*string
event*string
Value in"primary_elected""primary_lost"
node_ordinal*integer