Applies an account baseline to multiple existing resource accounts at a time.
Operation description
Applies an account baseline to multiple existing resource accounts at a time.
Account enrollment is an asynchronous process. After the accounts are enrolled, the account factory baseline is applied to each account. To query the enrollment details and check the baseline application result, call GetEnrolledAccount.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
governance:BatchEnrollAccounts |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Accounts |
array<object> |
No |
The resource accounts. |
|
|
object |
No |
The information about the resource account. |
||
| AccountUid |
integer |
No |
The ID of the account to enroll. This parameter is required. |
12868156179**** |
| BaselineItems |
array<object> |
No |
The baseline items. If you specify this parameter, the baseline item configurations are merged with the configurations of the baseline specified by |
|
|
object |
No |
The configurations of the baseline item. |
||
| Config |
string |
No |
The configurations of the baseline item. |
{"Notifications":[{"GroupKey":"account_msg","Contacts":[{"Name":"aa"}],"PmsgStatus":1,"EmailStatus":1,"SmsStatus":1}]} |
| Name |
string |
No |
The name of the baseline item. |
ACS-BP_ACCOUNT_FACTORY_VPC |
| Skip |
boolean |
No |
Specifies whether to skip the baseline item. Valid values:
|
false |
| Version |
string |
No |
The version of the baseline item. |
1.0 |
| BaselineId |
string |
No |
The ID of the baseline. If you leave this parameter empty, the default baseline is used. |
afb-bp1durvn3lgqe28v**** |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1 |
Examples
Success response
JSON format
{
"RequestId": "16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. | A system error occurred. |
| 404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | The specified account has not passed enterprise real-name verification. Please complete the verification for the account first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.