Memanggil operasi DescribeContactList untuk mengkueri daftar kontak peringatan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:DescribeContactList |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 100. |
10 |
| PageNumber |
integer |
No |
Nomor halaman saat ini. Nilai default: 1. |
1 |
| ContactName |
string |
No |
Nama kontak peringatan. |
Alice |
| ChanelType |
string |
No |
Metode notifikasi peringatan. Nilai valid:
|
|
| ChanelValue |
string |
No |
Nilai metode notifikasi peringatan. Catatan
Parameter ini hanya diperlukan ketika ChanelType diatur ke Mail. |
Alice@example.com |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tidak ada. |
||
| Code |
string |
Kode status. Catatan
200 menunjukkan keberhasilan. |
200 |
| Message |
string |
Paket error. |
The Request is not authorization. |
| RequestId |
string |
ID permintaan. |
06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83 |
| Total |
integer |
Jumlah total catatan. |
15 |
| Success |
boolean |
Apakah operasi berhasil. Nilai valid:
|
true |
| Contacts |
object |
||
| Contact |
array<object> |
Metode notifikasi peringatan. |
|
|
array<object> |
Tidak ada. |
||
| UpdateTime |
integer |
Stempel waktu saat kontak peringatan diperbarui. Unit: milidetik. |
1552356159000 |
| Name |
string |
Nama kontak peringatan. |
Alice |
| CreateTime |
integer |
Stempel waktu saat kontak peringatan dibuat. Unit: milidetik. |
1552356159000 |
| Lang |
string |
Bahasa yang digunakan untuk menampilkan informasi peringatan. Nilai yang valid:
|
zh-cn |
| Desc |
string |
Deskripsi. |
ECS |
| ContactGroups |
object |
||
| ContactGroup |
array |
Tidak ada. |
|
|
string |
Grup kontak peringatan. |
{ "ContactGroup": [ "ECS_Group", "Jim" ] } |
|
| Channels |
object |
Metode notifikasi peringatan. |
|
|
string |
Alamat email kontak peringatan. |
Alice@example.com |
|
| AliIM |
string |
ID TradeManager kontak peringatan. |
Alice |
| DingWebHook |
string |
URL webhook chatbot DingTalk. |
https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112**** |
| SMS |
string |
Nomor telepon kontak peringatan. |
1333333**** |
| ChannelsState |
object |
Status metode notifikasi peringatan. Nilai yang valid: PENDING dan OK. Alamat email harus diaktifkan setelah ditambahkan sebagai nilai yang ditentukan untuk metode notifikasi peringatan. Nilai PENDING menunjukkan bahwa alamat email belum diaktifkan. Nilai OK menunjukkan bahwa alamat email telah diaktifkan. |
|
|
string |
Status alamat email. Nilai yang valid:
|
PENDING |
|
| AliIM |
string |
Status ID TradeManager. Nilai yang valid: OK. Nilai OK menunjukkan bahwa ID TradeManager valid dan dapat menerima notifikasi peringatan. Catatan
Parameter ini hanya berlaku untuk situs Alibaba Cloud Tiongkok (aliyun.com). |
OK |
| DingWebHook |
string |
Status chatbot DingTalk. Nilai yang valid: OK. Nilai OK menunjukkan bahwa chatbot DingTalk normal dan notifikasi peringatan dapat diterima di grup DingTalk. |
OK |
| SMS |
string |
Status nomor telepon. Nilai yang valid:
Catatan
Parameter ini hanya berlaku untuk situs Alibaba Cloud Tiongkok (aliyun.com). |
OK |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "06D5ECC2-B9BE-42A4-8FA3-1A610FB08B83",
"Total": 15,
"Success": true,
"Contacts": {
"Contact": [
{
"UpdateTime": 1552356159000,
"Name": "Alice",
"CreateTime": 1552356159000,
"Lang": "zh-cn",
"Desc": "ECS",
"ContactGroups": {
"ContactGroup": [
"{ \"ContactGroup\": [ \t\"ECS_Group\", \"Jim\" ] }"
]
},
"Channels": {
"Mail": "Alice@example.com",
"AliIM": "Alice",
"DingWebHook": "https://oapi.dingtalk.com/robot/send?access_token=9bf44f8189597d07dfdd7a123455ffc112****",
"SMS": "1333333****"
},
"ChannelsState": {
"Mail": "PENDING",
"AliIM": "OK",
"DingWebHook": "OK",
"SMS": "OK"
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidAuthorization | %s | |
| 404 | ResourceNotFound | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.