Copies rules from one account group to another.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:CopyConfigRules |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SrcConfigRuleIds |
string |
Yes |
The rule IDs. Separate multiple rule IDs with commas (,). |
cr-4b57626622af0065****,cr-47c1626622af0050**** |
| SrcAggregatorId |
string |
No |
The ID of the account group to which the rules belong. For more information about how to obtain the ID of an account group, see ListAggregators. |
ca-24db626622af0060**** |
| DesAggregatorIds |
string |
No |
The IDs of the destination account groups to which the rules are copied. Separate multiple account group IDs with commas (,). Note
If you leave this parameter empty, the rules are copied within the same account group. |
ca-4b4e626622af005d**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7BD81ECF-3194-5A6B-8719-9FC283167AD4 |
| CopyRulesResult |
boolean |
Indicates whether the rules are copied. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "7BD81ECF-3194-5A6B-8719-9FC283167AD4",
"CopyRulesResult": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ConfigRuleCopyLimit | The number of replication config rule must be less than 100. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.