Mengubah status sakelar kebijakan intersepsi pertahanan proaktif kontainer.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyInterceptionRuleSwitch |
update |
*All resources
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
ID klaster yang ingin Anda modifikasi. Catatan
Anda dapat memanggil operasi DescribeGroupedContainerInstances untuk mendapatkan parameter ini. |
ce5c29aba99694ade9ba85dc620b4**** |
| RuleSwitch |
integer |
No |
Status sakelar aturan. Nilai yang valid:
|
1 |
| RuleIds |
string |
No |
Daftar ID aturan yang akan dioperasikan. Pisahkan beberapa ID dengan koma (,). Catatan
Anda dapat memanggil operasi ListInterceptionRulePage untuk mendapatkan parameter ini. |
403287 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. Alibaba Cloud menghasilkan pengidentifikasi unik untuk setiap permintaan API. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
DE725A60-95F2-50E8-8F5D-81055215E7DA |
Contoh
Respons sukses
JSONformat
{
"RequestId": "DE725A60-95F2-50E8-8F5D-81055215E7DA"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | A service error occurred. Try again later. |
| 403 | NoPermission | caller has no permission | You are not authorized to perform this operation. Contact the Alibaba Cloud account to grant the required permissions in the RAM console before you perform this operation. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.