Updates an alert handling rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:UpdateImageEventOperation |
update |
*ImageEventOperation
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the alert handling rule. Note
You can call DescribeImageEventOperationPage to obtain this parameter. |
814163 |
| Scenarios |
string |
No |
The rule scope. The value is in JSON format. The following keys are supported:
Note
This parameter and Source cannot both be empty. If Source is set to agentless, this parameter does not take effect. |
{\"type\": \"repo\", \"value\": \"test-aaa/shenzhen-repo-01\"} |
| Source |
string |
No |
The whitelist source. Valid values:
Note
This parameter and Scenarios cannot both be empty. If this parameter is set to agentless, the Scenarios parameter does not take effect. |
agentless |
| Conditions |
string |
Yes |
The rule conditions. The value is in JSON format. The following keys are supported:
|
[{\"condition\": \"MD5\", \"type\": \"equals\", \"value\": \"0083a31cc0083a31ccf7c10367a6e****\"}] |
| Note |
string |
No |
The remarks to add. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Data |
object |
The returned data. |
|
| Id |
integer |
The ID of the alert handling rule, which is the same as the alert handling rule ID in the request parameters. |
67429 |
| Success |
boolean |
The status of the request response. Valid values:
|
true |
| Code |
string |
The status code returned by the API request. |
200 |
| Message |
string |
The message returned for the request. |
successful |
| RequestId |
string |
The unique request ID. |
7532B7EE-7CE7-5F4D-BF04-B12447DD**** |
Examples
Success response
JSON format
{
"Data": {
"Id": 67429
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.