You can call this operation ModifyPolarDbReadWeight to modify read/write weights of a specified PolarDB cluster.


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 Required ModifyPolarDbReadWeight

The parameter specified by the system. Value: ModifyPolarDbReadWeight.

DbInstanceId String Required pc-****************

Polar cluster ID.

DbName String Required test

The name of the database.

DbNodeIds String Required pi-****************,pi-****************:pi-****************

The node list in the destination apsaradb for PolarDB cluster. The nodes in each cluster are separated with commas (,) and colons (:).

DrdsInstanceId String Required drds************

The ID of a DRDS instance.

Weights String Required 14,86

The weight of the PolarDB cluster. 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 database creation failure records were removed from the PolarDB-X instance.


Sample requests

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

Sample success responses

XML format


JSON format

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

Error codes

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