CreateWarningConfig
Create a warning configuration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:CreateWarningConfig |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
Yes |
Complete JSON string information. See the following details for specific content. |
{"ridList":[15670],"configName":"投诉预警","channels":[{"type":1,"url":"https://xxx"}]} |
| BaseMeAgentId |
integer |
No |
Workspace ID |
123456 |
Input Parameter Details
| Property | Value Type | Required | Description |
| configName | String | Yes | Configuration name. |
| channels | Channel | Yes | Subscription channel list. For details, see the Channel field description below. |
| ridList | Yes | List | Selected rule ridList. |
Channel Field Description
| Property | Value Type | Required | Description |
| type | Byte | Yes | Subscription method. Possible values: 0 for DingTalk; 1 for callback. |
| url | String | Yes | URL address. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Result code. 200 indicates success. Other values indicate failure. The caller can determine the failure reason based on this field. |
200 |
| Message |
string |
Error details when an error occurs. Returns 'successful' on success. |
successful |
| Data |
string |
The ID of the warning configuration successfully created. |
30 |
| RequestId |
string |
Request ID. |
82C91484-B2D5-4D2A-A21F-A6D73F4D55C6 |
| Success |
boolean |
Whether the request was successful. The caller can determine if the request was successful based on this field: true indicates success, false/null indicates failure. |
true |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"Data": "30",
"RequestId": "82C91484-B2D5-4D2A-A21F-A6D73F4D55C6",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.