Modifies parameter settings for data nodes and storage nodes of a PolarDB-X instance.

Debugging

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 ModifyParameter

The operation that you want to perform. Set the value to ModifyParameter.

RegionId String Yes cn-hangzhou

The ID of the region.

DBInstanceId String Yes pxc-hzjasdyuoo

The ID of the instance.

ParamLevel String No compute

Specifies whether each parameter that you want to modify is used to describe data nodes or storage nodes. The value is an enumeration value. Valid values:

  • compute: The parameter is used to describe data nodes.
  • storage: The parameter is used to describe storage nodes.
Parameters String Yes null

The details about each parameter that you want to modify. The value of the Parameters parameter must be a JSON string that consists of maps. In a map, MapKey specifies the name of a parameter name and MapValue specifies the new value of the parameter.

ClientToken String No FEA5DC20-6D8A-5979-97AA-FC57546ADC20

The client token that is generated by your client. A client token is a unique random string.

Response parameters

Parameter Type Example Description
RequestId String FEA5DC20-6D8A-5979-97AA-FC57546ADC20

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyParameter
&RegionId=cn-hangzhou
&DBInstanceId=pxc-hzjasdyuoo
&ParamLevel=compute
&Parameters={"CONN_POOL_BLOCK_TIMEOUT":6000}
&ClientToken=FEA5DC20-6D8A-5979-97AA-FC57546ADC20
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyParameterResponse>
    <RequestId>FEA5DC20-6D8A-5979-97AA-FC57546ADC20</RequestId>
</ModifyParameterResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "FEA5DC20-6D8A-5979-97AA-FC57546ADC20"
}

Error codes

HttpCode Error code Error message Description
404 InvalidDBInstance.NotFound The specified DB instance does not exist. The error message returned because the specified database instance does not exist.

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