Create a physical replication stream
Can be used by the following roles assigned at the organization, folder or cluster scope:
- CLUSTER_ADMIN
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Response
A successful response.
created_at is the timestamp at which the replication stream was created.
id is the UUID of the replication stream.
primary_cluster_id is the ID of the cluster that is being replicated.
standby_cluster_id is the ID of the standby cluster that data is being replicated to.
status describes the desired status of the replication stream.
- STARTING: signifies that a stream is starting
- REPLICATING: during an update request, status 'REPLICATING' is allowed to transition to 'FAILING_OVER' or 'CANCELED'. Other status transitions are not supported.
- FAILING_OVER: used to trigger a failover, or to signify that a failover is occurring.
- COMPLETED: signifies that a failover is complete.
- CANCELED: signifies that a stream is canceled.
STARTING, REPLICATING, FAILING_OVER, COMPLETED, CANCELED activated_at is the crdb system time at which failover is finalized. This may differ from the time for which failover was requested. This field will be present when a replication stream is in the COMPLETED state.
canceled_at is the timestamp at which the replication stream was canceled.
failover_at is the time for which failover is requested. If the user sets the status to 'FAILING_OVER' but omits failover_at, the failover time will default to the latest consistent replicated time. Otherwise, the user can pick a time up to one hour in the future to schedule a failover, or a time in the past to restore the cluster to a recent state. This field will be present if the user has requested failover at a future time.
replicated_time is the timestamp indicating the point up to which data has been replicated. The window between replicated_time and the actual time is known as replication lag. This field will be present when a replication stream is in the REPLICATING state.
replication_lag_seconds is the replication lag (current time minus replicated time) in seconds. This field will be present when a replication stream is in the REPLICATING state.
retained_time is the timestamp indicating the lower bound that the replication stream can failover to. This field will be present when a replication stream is in the REPLICATING state.

