Creates an account used to manage a PolarDB-X 1.0 instance.


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 CreateInstanceAccount

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

DrdsInstanceId String Yes drdsjiii1b49****

The ID of the PolarDB-X 1.0 instance for which you want to create the account.

AccountName String Yes drds_sample_account

The username of the account you want to create.

Password String Yes drds_sample_password

The password of the account you want to create.

DbPrivilege.N.DbName String No test123

The name of the database that you want to manage by using the account to create.

DbPrivilege.N.Privilege String No DDL

The permissions that you want to grant to the account to manage the database.

Response parameters

Parameter Type Example Description
Success Boolean true

Indicates whether the request is successful.

RequestId String FF13E47D-4E38-4A5A-BA68-4E610EVF56DC

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK


JSON format

HTTP/1.1 200 OK

  "Success" : true,
  "RequestId" : "FF13E47D-4E38-4A5A-BA68-4E610EVF56DC"

Error codes

HttpCode Error code Error message Description
500 InternalError The request processing has failed due to some unknown error. The error message returned because an internal error has occurred and the request failed.

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