Memanggil operasi PutContact untuk membuat atau mengubah informasi kontak peringatan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:PutContact |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ContactName |
string |
Yes |
Nama kontak peringatan. |
Alice |
| Describe |
string |
Yes |
Deskripsi kontak peringatan. |
ECS_Instance |
| Channels.SMS |
string |
No |
Nomor telepon kontak peringatan. Tautan aktivasi dikirim ke nomor telepon tersebut. Kontak peringatan hanya ditambahkan setelah tautan diaktifkan. Tentukan setidaknya salah satu metode kontak berikut: alamat email atau chatbot DingTalk. . |
1333333**** |
| Channels.Mail |
string |
No |
Alamat email kontak peringatan. Tautan aktivasi dikirim ke alamat email tersebut. Kontak peringatan hanya ditambahkan setelah tautan diaktifkan. Tentukan setidaknya salah satu metode kontak berikut: alamat email atau chatbot DingTalk. . |
test@aliyun.com |
| Channels.AliIM |
string |
No |
ID TradeManager kontak peringatan. Tentukan setidaknya salah satu metode kontak berikut: alamat email atau chatbot DingTalk. . |
Jim |
| Channels.DingWebHook |
string |
No |
URL webhook chatbot DingTalk. Tentukan setidaknya salah satu metode kontak berikut: alamat email atau chatbot DingTalk. . |
https://oapi.dingtalk.com/robot/send?access_token=7d49515e8ebf21106a80a9cc4bb3d247771305d52fb15d6201234565**** |
| Lang |
string |
No |
Bahasa yang digunakan untuk mengirim notifikasi peringatan. Nilai valid:
Catatan
Jika parameter ini tidak diatur, bahasa akan ditentukan secara otomatis berdasarkan wilayah akun. |
zh-cn |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Kode status HTTP. Catatan
Nilai 200 menunjukkan keberhasilan. |
200 |
| Message |
string |
Paket error. |
The Request is not authorization. |
| RequestId |
string |
ID permintaan. |
181C406E-9DE4-484C-9C61-37AE9A1A12EE |
| Success |
boolean |
Apakah operasi berhasil. Nilai valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "181C406E-9DE4-484C-9C61-37AE9A1A12EE",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameterValue | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | InvalidAuthorization | Permission denied |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.