Enables the three-role mode for a PolarDB-X instance.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. 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 EnableRightsSeparation

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

RegionId String Yes cn-hangzhou

The ID of the region where the PolarDB-X instance is deployed.

DBInstanceName String Yes pxc-htri0ori2r4k9p

The name of the PolarDB-X instance.

SecurityAccountName String Yes account_sec

The username of the data security administrator (DSA) account

SecurityAccountPassword String Yes *****

The password of the DSA account.

SecurityAccountDescription String No test123

The description of the DSA account.

AuditAccountName String Yes account_audit

The username of the data audit administrator (DAA) account

AuditAccountPassword String Yes ******

The password of the DAA account.

AuditAccountDescription String No test123

The description of the DAA account.

Response parameters

Parameter Type Example Description
Message String success

The message that is returned. If the request is successful, "success" is returned. If the request fails, an error code is returned.

RequestId String 73559800-3c8c-11ec-bd40-99cfcff3fe1e

The ID of the request.

Success Boolean true

Indicates whether the request is successful.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "Message" : "success",
  "RequestId" : "73559800-3c8c-11ec-bd40-99cfcff3fe1e",
  "Success" : true

Error codes

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