Deletes one or more rules from an account group.
The sample request in this topic shows you how to delete the cr-4e3d626622af0080****
rule from the ca-a4e5626622af0079****
account group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteAggregateConfigRules |
The operation that you want to perform. Set the value to DeleteAggregateConfigRules. |
ConfigRuleIds | String | Yes | cr-4e3d626622af0080**** |
The ID of the rule. Separate multiple rule IDs with commas (,). For more information about how to obtain the ID of a rule, see ListAggregateConfigRules. |
AggregatorId | String | Yes | ca-a4e5626622af0079**** |
The ID of the account group. For more information about how to obtain the ID of an account group, see ListAggregators. |
For information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 6EC7AED1-172F-42AE-9C12-295BC2ADB751 |
The ID of the request. |
OperateRuleResult | Object |
The results of the delete operations. |
|
OperateRuleItemList | Array of OperateRuleItem |
The result of the delete operation. |
|
ErrorCode | String | ConfigRuleCanNotDelete |
The error code returned.
|
Success | Boolean | false |
Indicates whether the delete operation is successful. Valid values:
|
ConfigRuleId | String | cr-4e3d626622af0080**** |
The ID of the rule. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteAggregateConfigRules
&ConfigRuleIds=cr-4e3d626622af0080****
&AggregatorId=ca-a4e5626622af0079****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteAggregateConfigRulesResponse>
<RequestId>6EC7AED1-172F-42AE-9C12-295BC2ADB751</RequestId>
<OperateRuleResult>
<OperateRuleItemList>
<ErrorCode>ConfigRuleCanNotDelete</ErrorCode>
<Success>false</Success>
<ConfigRuleId>cr-4e3d626622af0080****</ConfigRuleId>
</OperateRuleItemList>
</OperateRuleResult>
</DeleteAggregateConfigRulesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "6EC7AED1-172F-42AE-9C12-295BC2ADB751",
"OperateRuleResult" : {
"OperateRuleItemList" : [ {
"ErrorCode" : "ConfigRuleCanNotDelete",
"Success" : false,
"ConfigRuleId" : "cr-4e3d626622af0080****"
} ]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | The error message returned because you are not authorized to perform the specified operation. |
400 | ConfigRuleCanNotDelete | The config rule cannot be deleted. | The error message returned because the specified rule cannot be deleted. |
400 | Invalid.ConfigRuleIds.SizeExceed | The maximum number of ConfigRuleIds cannot exceed 20. | The error message returned because the number of specified rule IDs exceeds 20. |
400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | The error message returned because the specified account group ID does not exist or you are not authorized to use the account group. |
403 | AggregatorMemberNoPermission | The aggregator member is not authorized to perform the operation. | The error message returned because you are using a member account and you are not authorized to perform the specified operation. |
404 | AccountNotExisted | Your account does not exist. | The error message returned because your account does not exist. |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The error message returned because the service is unavailable. |
For a list of error codes, visit the API Error Center.