Modifies the basic information about a database account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyDatabaseAccount |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the bastion host that manages the database account to modify. Note
You can call the DescribeInstances operation to query the bastion host ID. |
bastionhost-cn-zpr2zyqx603 |
| RegionId |
string |
No |
The region ID of the bastion host that manages the database account to modify. Note
For more information about the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| DatabaseAccountId |
string |
Yes |
The ID of the database account to modify. Note
You can call the ListDatabaseAccounts operation to query the database account ID. |
2 |
| Password |
string |
No |
The new password of the database account. |
14SZ!****** |
| DatabaseAccountName |
string |
No |
The new username of the database account. The username can be up to 128 characters in length. |
aaa |
| DatabaseSchema |
string |
No |
The new name of the database. This parameter is required if the database engine is PostgreSQL or Oracle. |
orcl |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
850FA4B4-5BD2-5269-903E-3B7E07E6C975 |
Examples
Success response
JSON format
{
"RequestId": "850FA4B4-5BD2-5269-903E-3B7E07E6C975"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | The argument is invalid. |
| 400 | DatabaseAccountAlreadyExists | The database account already exists. | The database account already exists. |
| 500 | InternalError | An unknown error occurred. | An unknown error occurred. |
| 404 | DatabaseAccountNotFound | The database account is not found. | The database account is not found. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.