You can call the operation ModifyRdsReadWeight RDS instance to modify the read/write weights of RDS instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyRdsReadWeight

Required parameter. Value: ModifyRdsReadWeight.

DbName String Yes test

The name of the PolarDB-X database.

DrdsInstanceId String Yes drds************

The ID of the DRDS instance.

InstanceNames String Yes rm-****************,rm-****************

The list of RDS instances. Separate multiple instances with commas (,).

Weights String Yes 14,86

The weight of an RDS instance. Separate multiple weights with commas (,).

Response parameters

Parameter Type Example Description
RequestId String B12FC174-D5CE-4A6E-83C1-0F8F86******

The ID of the request.

Success Boolean true

Indicates whether the request was sent successfully or not .


Sample requests

http(s):// Action=ModifyRdsReadWeight
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "B12FC174-D5CE-4A6E-83C1-0F8F86******",
    "Success": "true"

Error code

For a list of error codes, visit the API Error Center.