All Products
Search
Document Center

PolarDB:ModifyDBNodeRouterWeight

Last Updated:Nov 04, 2026

Configures the routing access weights of nodes.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The cluster ID.

Note

You can call the DescribeDBClusters operation to query all clusters in the specified region, including cluster IDs.

pc-****************

DBNodeWeights

string

No

The node weights.

"pi-xxxxxxxxxxx":"1","pi-xxxxxxx":"1"}

Response elements

Element

Type

Description

Example

object

Schema of Response

DBClusterId

string

The cluster ID.

pc-****************

RequestId

string

The request ID.

E2FDB684-751D-424D-98B9-704BEA******

Examples

Success response

JSON format

{
  "DBClusterId": "pc-****************\t\n",
  "RequestId": "E2FDB684-751D-424D-98B9-704BEA******\t\n"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid.
400 InvalidDBNodeWeights.Malformed The specified DBNodeWeights is not valid. The specified DBNodeWeights parameter is invalid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.