Skip to main content

Create Read Replica

Creates a replica for an existing DBaaS cluster.

Request Flow:

  1. When dest_location is not provided, the API creates a read replica in the same region.
  2. When dest_location is provided, the API creates a read replica in the destination region.
POST/rds/cluster/{Cluster_id}/add-slave

Path parameters

  • Cluster_idPathintegerrequired

    Cluster Id

Query parameters

  • project_idQueryintegerrequired
  • locationQuerystringrequired

    Location (Delhi and Chennai)

  • dest_locationQuerystringoptional

    Constraint:

    • If location is Delhi/Chennai, select dest_location as Delhi or Chennai.

Request body

application/json

oneOf
option 1object
template_idintegerrequired

Template ID for read replica

example159
public_ip_requiredbooleanrequired

Whether public IP is required for the read replica

exampletrue
option 2object
template_idintegerrequired

Template ID for slave node

example159
public_ip_requiredbooleanrequired

Whether a public IP should be assigned

exampletrue
tunnel_idintegerrequired

Tunnel ID for private connectivity

example105

Responses

200Success response
object
codeinteger
example200
dataobject
errorsobject
messagestring
examplesuccess