Creates a privileged account for a PolarDB-X instance. An instance can have only one privileged account.

Debugging

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 CreateSuperAccount

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

RegionId String Yes cn-hangzhou

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

DBInstanceName String Yes pxc-************

The name of the PolarDB-X instance.

AccountName String Yes dba

The username of the privileged account.

AccountPassword String Yes testdbapassword

The password of the privileged account.

AccountDescription String No testdbadescription

The description of the privileged account.

Response parameters

Parameter Type Example Description
Message String *****

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

RequestId String 9B2F3840-5C98-475C-B269-2D5C3A31797C

The ID of the request.

Success Boolean true

Indicates whether the request is successful.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateSuperAccount
&RegionId=cn-hangzhou
&DBInstanceName=pxc-************
&AccountName=dba
&AccountPassword=testdbapassword
&AccountDescription=testdbadescription
&<Common request parameters>

Sample success responses

XML format

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

<CreateSuperAccountResponse>
    <Message>*****</Message>
    <RequestId>9B2F3840-5C98-475C-B269-2D5C3A31797C</RequestId>
    <Success>true</Success>
</CreateSuperAccountResponse>

JSON format

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

{
  "Message" : "*****",
  "RequestId" : "9B2F3840-5C98-475C-B269-2D5C3A31797C",
  "Success" : true
}

Error codes

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