Mengambil daftar notifikasi DingTalk.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeDingTalk |
get |
*All Resources
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RuleActionName |
string |
No |
Nama notifikasi. |
TestRuleAction |
| PageSize |
integer |
No |
Jumlah maksimum notifikasi yang ditampilkan per halaman dalam kueri terpaginasi. Nilai default: 20, yang menunjukkan bahwa hingga 20 entri ditampilkan per halaman. |
20 |
| CurrentPage |
integer |
No |
Nomor halaman dari halaman saat ini yang ditampilkan dalam kueri terpaginasi. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan ini, yang merupakan pengidentifikasi unik yang dibuat oleh Alibaba Cloud untuk permintaan tersebut. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
B256A525-7E42-4BB9-A27C-9017FDDFF1A2 |
| PageInfo |
object |
Informasi paginasi. |
|
| CurrentPage |
integer |
Nomor halaman dari halaman saat ini dalam kueri terpaginasi. |
1 |
| PageSize |
integer |
Jumlah maksimum entri yang ditampilkan per halaman dalam kueri terpaginasi. |
20 |
| TotalCount |
integer |
Jumlah total entri. |
149 |
| ActionList |
array<object> |
Daftar notifikasi. |
|
|
object |
Informasi notifikasi. |
||
| Status |
integer |
Status notifikasi. Nilai valid:
|
0 |
| ConfigList |
string |
Konfigurasi cakupan (dalam OAuth) notifikasi untuk Paket. Nilainya adalah string JSON yang berisi bidang berikut:
|
[{"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 |
Stempel pengatur waktu pembuatan. Unit: milidetik. |
1550828400000 |
| ActionName |
string |
Nama notifikasi. |
TestRuleAction |
| Url |
string |
Parameter notifikasi. |
https://oapi.dingtalk.com/robot/send |
| AliUid |
integer |
UID pengguna. |
12312412341 |
| DingTalkLang |
string |
Bahasa notifikasi. Nilai valid:
|
zh |
| IntervalTime |
integer |
Interval pengatur waktu. Unit: menit. |
1000 |
| GmtModified |
integer |
Pengatur waktu modifikasi. |
1550828400000 |
| GroupIdList |
string |
Daftar ID kelompok. |
"123,456" |
| Id |
integer |
ID Paket notifikasi. |
1 |
Contoh
Respons sukses
JSONformat
{
"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
}
]
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | no permission | You do not have the permissions to access the service. |
| 500 | ServerError | ServerError | A service failure has occurred. Try again later. |
| 403 | NoPermission | caller has no permission | The current operation is not authorized. Use your Alibaba Cloud account to grant the required permissions in the RAM console and then try again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.