Mengubah kebijakan blacklist notifikasi.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
ID kebijakan blacklist notifikasi. Untuk informasi tentang cara mendapatkan ID kebijakan blacklist notifikasi, lihat DescribeMetricRuleBlackList. |
93514c96-ceb8-47d8-8ee3-93b6d98b**** |
| Name |
string |
Yes |
Nama kebijakan blacklist notifikasi. |
Blacklist-02 |
| Namespace |
string |
Yes |
Namespace layanan Alibaba Cloud. Untuk informasi tentang namespace layanan Alibaba Cloud, lihat Metrik pemantauan layanan cloud. |
acs_ecs_dashboard. |
| Category |
string |
Yes |
Kategori layanan Alibaba Cloud. Misalnya, Database Apsara for Redis memiliki |
ecs. |
| ScopeType |
string |
No |
Cakupan efektif kebijakan blacklist notifikasi. Nilai valid:
|
USER. |
| ScopeValue |
string |
No |
Daftar ID kelompok aplikasi. Catatan
Parameter ini diperlukan hanya jika |
["67****","78****"] |
| EnableStartTime |
string |
No |
Timestamp mulai dari mana kebijakan blacklist notifikasi berlaku. Unit: milidetik. |
1640237400000 |
| EnableEndTime |
string |
No |
Timestamp akhir hingga kebijakan blacklist notifikasi berlaku. Unit: milidetik. |
1640608200000 |
| EffectiveTime |
string |
No |
Periode efektif kebijakan blacklist notifikasi. Implikasi pengaturan parameter ini adalah sebagai berikut:
|
03:00-04:59 |
| Instances |
array |
Yes |
Daftar instans layanan Alibaba Cloud yang ditentukan dalam kebijakan blacklist notifikasi. |
|
|
string |
No |
Daftar instans layanan Alibaba Cloud yang ditentukan dalam kebijakan blacklist notifikasi. Nilai valid N: 1 hingga 100. |
{"instanceId":"i-bp1ew0zfkjblsuwx****"} |
|
| Metrics |
array<object> |
No |
Metrik pemantauan Instans.
|
|
|
object |
No |
Tidak ada. |
||
| MetricName |
string |
Yes |
Nama metrik pemantauan. Nilai valid N: 1 hingga 10. |
disk_utilization. |
| Resource |
string |
No |
Informasi dimensi ekstensi Instans. Misalnya, Nilai valid N: 1 hingga 10. |
{"Perangkat":"C:"} |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tidak ada. |
||
| Code |
string |
Kode status HTTP. Catatan
Nilai 200 menunjukkan keberhasilan. |
200 |
| Message |
string |
Paket error. |
Sumber daya yang ditentukan tidak ditemukan. |
| RequestId |
string |
ID permintaan. |
008773AE-1D86-3231-90F9-1AF7F808F9CE |
| Success |
boolean |
Apakah operasi berhasil. Nilai valid:
|
true. |
| Count |
string |
Jumlah kebijakan blacklist notifikasi yang berhasil diubah. |
1 |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "008773AE-1D86-3231-90F9-1AF7F808F9CE",
"Success": true,
"Count": "1"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | Illegal parameters. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | AccessForbidden | User not authorized to operate on the specified resource. | |
| 404 | ResourceNotFound | The specified resource is not found. | Sumber daya %s yang ditentukan tidak ada. |
| 409 | ResourceConflict | Concurrent modification of resources. | |
| 409 | ResourceExist | Resources already exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.