Updated on 2025-08-22 GMT+08:00

Deleting a Read Replica of an Instance

API Description

This API is used to delete a read replica.

Restrictions

  • Only replica set instances have read replicas.
  • Read replicas cannot be deleted from instances that have abnormal nodes.

URI

  • URI format

    DELETE https://{Endpoint}/v3/{project_id}/instances/{instance_id}/readonly-node

  • URI example

    https://dds.cn-north-1.myhuaweicloud.com/v3/0549b4a43100d4f32f51c01c2fe4acdb/instances/9136fd2a9fcd405ea4674276ce36dae8in02/readonly-node

Table 1 Request parameters

Parameter

Type

IN

Mandatory

Description

X-Auth-Token

string

header

Yes

Definition

User token obtained from IAM. For details, see Authentication.

Constraints

N/A

Range

N/A

Default Value

N/A

project_id

string

path

Yes

Definition

Project ID of a tenant in a region. Obtain the project ID by following the instructions in Obtaining a Project ID.

Constraints

N/A

Range

N/A

Default Value

N/A

instance_id

string

path

Yes

Definition

Instance ID, which can be obtained by calling the API described in Querying Instances and Details. If you do not have an instance, call the API described in Creating a DB Instance to create one.

Constraints

N/A

Range

N/A

Default Value

N/A

Request Parameters

  • Parameter description
    Table 2 Request body parameters

    Parameter

    Mandatory

    Type

    Description

    node_list

    Yes

    Array of strings

    Definition

    List of read replica IDs.

    Constraints

    N/A

    Range

    N/A

    Default Value

    N/A

  • Example request
    { 
       "node_list": ["a66ae943020e49ed842dc6aa80ab2a13no02"]  
     }

Response Parameters

  • Parameter description
    Table 3 Response body parameters

    Parameter

    Type

    Description

    job_id

    String

    Definition

    Task ID. This parameter is returned only for pay-per-use DB instances.

    Range

    N/A

    order_id

    String

    Definition

    Order ID. This parameter is returned only for yearly/monthly DB instances.

    Range

    N/A

  • Example response
    { 
      "job_id" : "6ad4eb1f-73bd-4876-aa31-aa9a1e41c4bc"  
    }

Status Code

For details, see Status Code.

Error Code

For details, see Error Code.