Modifies the configuration items 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 ModifyDBInstanceConfig

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

RegionId String Yes cn-hangzhou

The region ID of the instance.

DBInstanceName String Yes pxc-hzjasd****

The ID of the instance.

ConfigName String Yes ENABLE_CONSISTENT_REPLICA_READ

The configuration item.

If you set this parameter to ENABLE_CONSISTENT_REPLICA_READ, this operation enables or disables consistent reads among read-only instances in hybrid transaction/analytical processing (HTAP) scenarios for the specified PolarDB-X instance.

ConfigValue String Yes true

If ConfigName is set to ENABLE_CONSISTENT_REPLICA_READ, the valid values of the ConfigValue parameter are true and false.

ResourceGroupId String No rg-acfmx2qz2eh2*** The ID of the resource group.

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=ModifyDBInstanceConfig
&RegionId=cn-hangzhou
&DBInstanceName=pxc-hzjasd****
&ConfigName=ENABLE_CONSISTENT_REPLICA_READ
&ConfigValue=true
&ResourceGroupId=rg-acfmx2qz2eh2***
&<Common request parameters>

Sample success responses

XML format

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

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

JSON format

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

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

Error codes

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