Enables or disables multiple blacklist policies at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:EnableMetricRuleBlackList |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The IDs of the blacklist policies. Separate multiple IDs with commas (,). You can specify up to 50 IDs. For information about how to obtain the ID of a blacklist policy, see DescribeMetricRuleBlackList. Note
You can also set this parameter to a JSON array. Example: |
a9ad2ac2-3ed9-11ed-b878-0242ac12**** |
| IsEnable |
boolean |
Yes |
Specifies whether to enable the blacklist policy. Valid values:
|
true |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None |
||
| Code |
string |
The status code. Note
The status code 200 indicates that the request was successful. |
200 |
| Message |
string |
The error message. |
The specified resource is not found. |
| RequestId |
string |
The request ID. |
94869866-1621-3652-BBC9-72A47B2AC2F5 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Count |
integer |
The number of blacklist policies that are enabled or disabled. |
1 |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "94869866-1621-3652-BBC9-72A47B2AC2F5",
"Success": true,
"Count": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
| 409 | ResourceConflict | Concurrent modification of resources. | |
| 409 | ResourceExist | Resources already exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.