Modifies the basic information of a database account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyDatabaseAccount |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the Bastionhost instance where the database account to be modified resides. Note
You can invoke the DescribeInstances operation to obtain this parameter. |
bastionhost-cn-zpr2zyqx603 |
| RegionId |
string |
No |
The region ID of the Bastionhost instance where the database account to be modified resides. 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 be modified. Note
You can call the ListDatabaseAccounts operation to obtain this parameter. |
2 |
| Password |
string |
No |
The new password of the database account. |
14SZ!****** |
| DatabaseAccountName |
string |
No |
The new name of the database account. The name can be up to 128 characters in length. |
aaa |
| DatabaseSchema |
string |
No |
The new database schema name. This parameter is required when the database specified by DatabaseId is a PostgreSQL or Oracle database. |
orcl |
| ProjectId |
integer |
No |
The project ID. |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique identifier generated by Alibaba Cloud for the request. |
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.