ModifyAccountDescription
Modifies the description of an account in a specified ApsaraDB for MongoDB instance.
Operation description
Asynchronous operation: Returns
RequestIdto indicate that the request is accepted.System account handling: The description of the
rootaccount can be modified (it is a database account, and the accounts table is updated, which is a standard online capability). The descriptions of system accounts with prefixes such as__cloudcannot be modified, and theInvalidAccountName.Malformederror is returned.If the account does not exist or the
DBNamedoes not match, theInvalidAccountName.NotFounderror is returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyAccountDescription |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp2356**** |
| AccountName |
string |
Yes |
The name of the account whose description you want to modify. |
root |
| DBName |
string |
No |
The database to which the account belongs. |
admin |
| AccountDescription |
string |
Yes |
The description of the account.
|
superadmin |
| CharacterType |
string |
No |
The type of the account whose description you want to modify. Valid values:
Valid values:
|
normal |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
59DE9FC2-7B40-45CF-9011-7327A8A771A2 |
Examples
Success response
JSON format
{
"RequestId": "59DE9FC2-7B40-45CF-9011-7327A8A771A2"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidAccountDescription.Malformed | Specified parameter AccountDescription is not valid. | The specified AccountDescription parameter is invalid. |
| 400 | InvalidAccountName.NotFound | Specified account name does not exist. | |
| 400 | InsType.NotSupport | Specified instance type dose not support this operation. | The specified instance type does not support this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.