Mengaktifkan atau menonaktifkan beberapa kebijakan daftar hitam sekaligus.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:EnableMetricRuleBlackList |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
ID dari kebijakan daftar hitam. Pisahkan beberapa ID dengan tanda koma (,). Anda dapat menentukan hingga 50 ID. Untuk informasi tentang cara mendapatkan ID kebijakan daftar hitam, lihat DescribeMetricRuleBlackList. Catatan
Anda juga dapat mengatur parameter ini ke array JSON. Contoh: |
a9ad2ac2-3ed9-11ed-b878-0242ac12**** |
| IsEnable |
boolean |
Yes |
Menentukan apakah kebijakan daftar hitam akan diaktifkan. Nilai yang valid:
|
true |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Tidak ada |
||
| Code |
string |
Kode status. Catatan
Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| Message |
string |
Pesan kesalahan. |
The specified resource is not found. |
| RequestId |
string |
ID permintaan. |
94869866-1621-3652-BBC9-72A47B2AC2F5 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Count |
integer |
Jumlah kebijakan daftar hitam yang diaktifkan atau dinonaktifkan. |
1 |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "The specified resource is not found.",
"RequestId": "94869866-1621-3652-BBC9-72A47B2AC2F5",
"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. | |
| 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.