Creates 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 cluster. Note
You can 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.
|
Database test account |
| AccountType |
string |
No |
The type of the account. Valid values:
Note
|
Normal |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The tag information. |
||
| Key |
string |
No |
The tag key. You can use tags to filter the cluster list. You can specify up to 20 tag key-value pairs. The number N in each tag key-value pair must be unique and must be a consecutive integer starting from 1. The value of Note
The tag key can be up to 64 characters in length and cannot start with |
testkey1 |
| Value |
string |
No |
The tag value. You can use tags to filter the cluster list. You can specify up to 20 tag key-value pairs. The number N in each tag key-value pair must be unique and must be a consecutive integer starting from 1. The value of Note
The tag value can be up to 64 characters in length and cannot start with |
testvalue1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list. |
||
| 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 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.