Enables the three-role mode for a PolarDB-X instance.
Debugging
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. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=EnableRightsSeparation
&RegionId=cn-hangzhou
&DBInstanceName=pxc-htri0ori2r4k9p
&SecurityAccountName=account_sec
&SecurityAccountPassword=*****
&SecurityAccountDescription=test123
&AuditAccountName=account_audit
&AuditAccountPassword=******
&AuditAccountDescription=test123
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<EnableRightsSeparationResponse>
<Message>success</Message>
<RequestId>73559800-3c8c-11ec-bd40-99cfcff3fe1e</RequestId>
<Success>true</Success>
</EnableRightsSeparationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Message" : "success",
"RequestId" : "73559800-3c8c-11ec-bd40-99cfcff3fe1e",
"Success" : true
}
Error codes
For a list of error codes, visit the API Error Center.