Applies account baselines to existing resource accounts in batches.
Operation description
You can use this API to apply account baselines to existing resource accounts.
Account registration is an asynchronous process. After a resource account is created, the account factory baseline is applied to the account. You can call GetEnrolledAccount to query account details and check the implementation results.
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 list of accounts. |
|
|
object |
No |
The account information. |
||
| AccountUid |
integer |
No |
The account ID. This parameter is required to create an account. |
12868156179**** |
| BaselineItems |
array<object> |
No |
The array of baseline item configurations. If this parameter is specified, the baseline item configurations are merged with the specified account baseline. For identical baseline items, the configurations in this parameter take precedence. Leave this parameter empty, specify the account baseline by using the BaselineId parameter, and apply the configurations to the account by using the existing baseline. |
|
|
object |
No |
The baseline item configuration. |
||
| Config |
string |
No |
The baseline item configuration. |
{"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 baseline ID. If this parameter is left empty, the system 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.