UpdateWarningConfig
Updates the warning configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:UpdateWarningConfig |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
Yes |
The complete JSON string. For details, see the detailed information below. |
{"ridList":[18130],"configName":"0310","channels":[{"type":1,"url":"https://sca.console.aliyun.com/#/warningConfig"}],"configId":29} |
| BaseMeAgentId |
integer |
No |
workspace ID |
123456 |
Request Parameters
| Property | Value Type | Required | Description |
| configId | Long | Yes | Configuration ID |
| configName | String | No | Configuration name |
| status | Byte | No | Enable status. 0: disabled; 1: enabled. |
| channels | List | No | Subscription push configuration. For details, see the Channel field description below. |
| ridList | List | No | List of selected rule IDs |
Channel Field Description
| Property | Value Type | Required | Description |
| type | Byte | Yes | Subscription push type. 0: DingTalk; 1: callback. |
| url | String | Yes | URL address |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The result code. 200 indicates success. Other values indicate failure. The caller can determine the cause of failure based on this field. |
200 |
| Message |
string |
Indicates error details on failure, or "successful" on success. |
successful |
| RequestId |
string |
Request ID |
106C6CA0-282D-4AF7-85F0-D2D24F4CE647 |
| Success |
boolean |
Indicates whether the request was successful. The caller can determine if the request succeeded based on this field: true for success; false/null for failure. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "106C6CA0-282D-4AF7-85F0-D2D24F4CE647",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.