Creating a Read Replica
Function
This API is used to create a read replica.
- Learn how to authenticate this API before using it.
- Before calling this API, obtain the required region and endpoint.
URI
- URI format
POST https://{Endpoint}/mysql/v3/{project_id}/instances/{instance_id}/nodes/enlarge
- Example
POST https://{Endpoint}/mysql/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/nodes/enlarge
- Parameter description
Table 1 Parameter description Name
Mandatory
Description
project_id
Yes
Project ID of a tenant in a region.
To obtain this value, see Obtaining a Project ID.
instance_id
Yes
DB instance ID, which is compliant with the UUID format.
Request
|
Name |
Mandatory |
Type |
Description |
|---|---|---|---|
|
priorities |
Yes |
List<Integer> |
Read replica failover priority ranging from 1 to 16. The total number of primary instances and read replicas is less than or equal to 16. |
|
is_auto_pay |
No |
String |
Whether the order will be automatically paid after yearly/monthly DB instances are created.
|
- Request example
{ "priorities":[1], }
Response
- Normal response
Table 3 Parameter description Name
Type
Description
instance_id
String
DB instance ID.
node_names
List<String>
Node name.
job_id
String
ID of the task for creating a read replica.
order_id
String
Order ID. This parameter is returned only when yearly/monthly DB instances are created.
- Example normal response
{ "instance_id":"f381d0b539e644df8f5b0d3a62129515in07", "node_names":["gauss-ccf5_node03"], "job_id":"0f6b6a9e-bd39-4e95-9374-e4d134e5a3d1" }
Status Code
For details, see Status Codes.
Error Code
For details, see Error Codes.
Last Article: Deleting a DB Instance
Next Article: Deleting a Read Replica
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.