Membuat kebijakan Pemberitahuan peringatan jeda untuk kelompok aplikasi.
Deskripsi operasi
Membuat kebijakan Pemberitahuan peringatan jeda untuk kelompok aplikasi tertentu. Setelah kebijakan dibuat, Pemberitahuan peringatan untuk kelompok aplikasi akan dijeda selama periode waktu yang ditentukan oleh StartTime dan EndTime (unit: milidetik). Saat ini, PolicyType hanya mendukung PauseNotify (Notifikasi jeda).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateMonitorGroupNotifyPolicy |
create |
*Semua sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyType |
string |
Yes |
Tipe Notifikasi jeda. Saat ini, hanya PauseNotify yang didukung. Valid values:
|
PauseNotify |
| GroupId |
string |
Yes |
ID kelompok aplikasi. |
6780**** |
| StartTime |
integer |
Yes |
Stempel waktu mulai. Unit: milidetik. |
1551761781273 |
| EndTime |
integer |
Yes |
Stempel waktu akhir. Unit: milidetik. |
1551761781273 |
Untuk informasi selengkapnya tentang parameter permintaan, lihat Parameter permintaan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
Kode status. Catatan
200 menunjukkan keberhasilan. |
200 |
| Message |
string |
Paket error. |
Permintaan tidak diotorisasi |
| RequestId |
string |
ID permintaan. |
B7AF834D-D38B-4A46-920B-FE974EB7E135 |
| Result |
integer |
Jumlah baris yang terpengaruh. |
1 |
| Success |
string |
Apakah operasi berhasil. Nilai valid:
|
true |
Mengembalikan hasil pembuatan, termasuk kode status (Code), Paket error (Message), ID permintaan (RequestId), jumlah baris yang terpengaruh (Result), dan apakah operasi berhasil (Success).
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "The Request is not authorization.",
"RequestId": "B7AF834D-D38B-4A46-920B-FE974EB7E135",
"Result": 1,
"Success": "true"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | %s | %s | |
| 500 | %s | %s | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 204 | %s | %s | |
| 403 | %s | %s | |
| 206 | %s | %s | |
| 404 | %s | %s | |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 409 | %s | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.