擷取DingTalk通知清單。
調試
您可以在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 | 當前操作未被授權,請聯絡主帳號在RAM控制台進行授權後再執行操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。