You can call the CreateAccount operation to create an account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateAccount |
create |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The ID of the Data Warehouse Edition (V3.0) cluster. Note
Call the DescribeDBClusters operation to query the cluster ID. |
am-bp1r053byu48p**** |
| AccountName |
string |
Yes |
The name of the database account. The name must meet the following requirements:
|
test_accout |
| AccountPassword |
string |
Yes |
The password of the database account. The password must meet the following requirements:
|
Test_accout1 |
| AccountDescription |
string |
No |
The description of the account.
|
数据库测试账号 |
| AccountType |
string |
No |
The type of the account. Valid values:
Note
|
Normal |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The information about the tags. |
||
| Key |
string |
No |
The key of tag `N`. You can specify up to 20 tags. `N` is the serial number of the tag and must be a unique integer that starts from 1. Note
The tag key can be up to 64 characters in length. It cannot start with |
testkey1 |
| Value |
string |
No |
The value of tag `N`. `N` corresponds to the `N` in `Tag.N.Key`. Note
The tag value can be up to 64 characters in length. It cannot start with |
testvalue1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
A list of items. |
||
| TaskId |
integer |
The ID of the task. |
1564657730 |
| RequestId |
string |
The ID of the request. |
2FED790E-FB61-4721-8C1C-07C627FA5A19 |
| DBClusterId |
string |
The ID of the Data Warehouse Edition (V3.0) cluster. |
am-bp1r053byu48p**** |
Examples
Success response
JSON format
{
"TaskId": 1564657730,
"RequestId": "2FED790E-FB61-4721-8C1C-07C627FA5A19",
"DBClusterId": "am-bp1r053byu48p****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.