获取钉钉通知列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-sas:DescribeDingTalk |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RuleActionName |
string |
否 |
通知名称。 |
TestRuleAction |
| PageSize |
integer |
否 |
分页查询时,每页最大显示的通知数量。默认值为 20,表示每页显示 20 条信息。 |
20 |
| CurrentPage |
integer |
否 |
分页查询时,显示的当前页的页码。 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
本次调用请求的 ID,是由阿里云为该请求生成的唯一标识符,可用于排查和定位问题。 |
B256A525-7E42-4BB9-A27C-9017FDDFF1A2 |
| PageInfo |
object |
分页信息。 |
|
| CurrentPage |
integer |
分页查询时,当前页的页码。 |
1 |
| PageSize |
integer |
分页查询时,显示每页数据的最大条数。 |
20 |
| TotalCount |
integer |
总条数。 |
149 |
| ActionList |
array<object> |
通知列表。 |
|
|
object |
通知信息。 |
||
| Status |
integer |
通知状态。取值:
|
0 |
| ConfigList |
string |
消息的通知范围配置。该值为 JSON 串,包含以下字段:
|
[{"type":"sas_analysis_pre-sas-operation-log-sas-event-suspicious","configItemList":[{"key":"item_level","valueList":["all"]}]},{"type":"sas_analysis_pre-sas-operation-log-sas-event-hc","configItemList":[{"key":"item_level","valueList":["all"]}]}] |
| GmtCreate |
integer |
创建时间戳。单位:毫秒。 |
1550828400000 |
| ActionName |
string |
通知名称。 |
TestRuleAction |
| Url |
string |
通知参数。 |
https://oapi.dingtalk.com/robot/send |
| AliUid |
integer |
用户的 UID。 |
12312412341 |
| DingTalkLang |
string |
通知的语言。取值:
|
zh |
| IntervalTime |
integer |
时间间隔。单位:分钟。 |
1000 |
| GmtModified |
integer |
修改时间。 |
1550828400000 |
| GroupIdList |
string |
分组 ID 列表。 |
"123,456" |
| Id |
integer |
通知消息 ID。 |
1 |
示例
正常返回示例
JSON格式
{
"RequestId": "B256A525-7E42-4BB9-A27C-9017FDDFF1A2",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 149
},
"ActionList": [
{
"Status": 0,
"ConfigList": "[{\"type\":\"sas_analysis_pre-sas-operation-log-sas-event-suspicious\",\"configItemList\":[{\"key\":\"item_level\",\"valueList\":[\"all\"]}]},{\"type\":\"sas_analysis_pre-sas-operation-log-sas-event-hc\",\"configItemList\":[{\"key\":\"item_level\",\"valueList\":[\"all\"]}]}]",
"GmtCreate": 1550828400000,
"ActionName": "TestRuleAction",
"Url": "https://oapi.dingtalk.com/robot/send",
"AliUid": 12312412341,
"DingTalkLang": "zh",
"IntervalTime": 1000,
"GmtModified": 1550828400000,
"GroupIdList": "\"123,456\"",
"Id": 1
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | NoPermission | no permission | |
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。