Creates or modifies a DingTalk chatbot that sends notifications.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:CreateOrUpdateDingTalk | create |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | long | No | The ID of the chatbot. Note
You can call the DescribeDingTalk operation to query the IDs of chatbots.
| 1589 |
RuleActionName | string | Yes | The name of the chatbot. Note
The name of a chatbot must be 2 to 64 characters in length.
| testNotify |
SendUrl | string | Yes | The webhook URL. | https://oapi.dingtalk.com/robot/send?access_token=XXX |
IntervalTime | long | No | The time interval at which the chatbot sends notifications. Note
The value 0 indicates unlimited.
| 0 |
ConfigList | string | No | The alerts for which you want the chatbot to send notifications. The value is a JSON array that contains the following fields:
Note
For more information about the value of this parameter, see the "Addition description of parameters" section in this topic.
| [{"type":"sas_analysis_online-sas-operation-log-sas-event-suspicious","configItemList":[{"key":"item_level","valueList":["all"]},{"key":"event_type","valueList":["all"]}]}] |
GroupIdList | string | No | The IDs of asset groups for which you want the chatbot to send notifications. The value is a JSON array. Note
You can call the DescribeGroupStruct operation to query the IDs of asset groups.
| ["10417151"] |
DingTalkLang | string | No | The language of the notifications. Valid values:
| zh |
Additional description of parameters
type | Description | key | Description | valueList | Description |
sas_analysis_online-sas-operation-log-sas-event-vul | Vulnerabilities | type | Vulnerability type | all | All |
cms | Web-CMS vulnerability | ||||
oval | Linux software vulnerability | ||||
sys | Windows system vulnerability | ||||
emg | Urgent vulnerability | ||||
necessity | Risk level | all | All | ||
asap | High | ||||
later | Medium | ||||
nntf | Low | ||||
sas_analysis_online-sas-operation-log-sas-event-hc | Baseline risks | item_level | Risk level | all | All |
high | High | ||||
medium | Medium | ||||
low | Low | ||||
sas_analysis_online-sas-operation-log-sas-event-suspicious | Alerts | item_level | Severity | all | All |
serious | Critical | ||||
suspicious | Suspicious | ||||
remind | Remind | ||||
event_type | Alert type | ||||
all | All | ||||
Suspicious process | Suspicious process | ||||
Webshell | Webshell | ||||
Unusual logon | Unusual logon | ||||
Exception | Exception | ||||
Sensitive file tampering | Sensitive file tampering | ||||
Malicious process (cloud threat detection) | Malicious process (cloud threat detection) | ||||
Unusual network connection | Unusual network connection | ||||
Others | Others | ||||
Abnormal account | Abnormal account | ||||
Application intrusion event | Application intrusion event | ||||
Cloud threat detection | Cloud threat detection | ||||
Precision defense | Precision defense | ||||
Application whitelist | Application whitelist | ||||
Persistent webshell | Persistent webshell | ||||
sas_analysis_online-sas-operation-log-sas-event-ak-leakage | AccessKey pair leaks | type | Leak type | all | All |
sas_analysis_online-sas-operation-log-sas-event-honeypot | Alerts generated by cloud honeypot | item_level | Risk level | all | All |
high | High | ||||
medium | Medium | ||||
low | Low | ||||
sas_analysis_online-sas-operation-log-sas-event-rasp | Alerts generated by application protection | item_level | Risk level | all | All |
high | High | ||||
medium | Medium | ||||
low | Low |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "76975B7A-34DC-5CB6-9538-91700D4F112E"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|