Modifies the description of the root account of an ApsaraDB for MongoDB 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 ModifyAccountDescription

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

RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeRegions operation to query the region ID.

DBInstanceId String Yes dds-bp2356****

The ID of the instance.

AccountName String Yes root

The name of the account for which you want to modify the description.

AccountDescription String Yes superadmin

The description of the account.

  • It cannot start with http:// or https://.
  • It must start with a letter.
  • It must be 2 to 256 characters in length, and can contain letters, digits, underscores (_), and hyphens (-).

Response parameters

Parameter Type Example Description
RequestId String 59DE9FC2-7B40-45CF-9011-7327A8A771A2

The ID of the request.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/?Action=ModifyAccountDescription
&DBInstanceId=dds-bp2356****
&AccountName=root
&AccountDescription=superadmin
&<Common request parameters>

Sample success responses

XML format

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

<ModifyAccountDescriptionResponse>
    <RequestId>59DE9FC2-7B40-45CF-9011-7327A8A771A2</RequestId>
</ModifyAccountDescriptionResponse>

JSON format

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

{
  "RequestId" : "59DE9FC2-7B40-45CF-9011-7327A8A771A2"
}

Error codes

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