Mengubah status switch aturan pertahanan program non-image.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ModifyContainerDefenseRuleSwitch |
update |
*ContainerDefenseRule
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RuleIds |
array |
No |
ID aturan yang ingin Anda ubah. |
|
|
integer |
No |
ID aturan yang ingin Anda hapus. Catatan
Anda dapat memanggil operasi ListContainerDefenseRule untuk mendapatkan parameter ini. |
188 |
|
| RuleSwitch |
integer |
No |
Status switch aturan. Nilai valid:
|
0 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
PlainResult |
||
| Data |
integer |
Jumlah baris yang diubah. |
30 |
| Success |
boolean |
Status hasil pemanggilan. Nilai valid:
|
true |
| Code |
string |
Kode hasil. Nilai 200 menunjukkan keberhasilan. Nilai lain menunjukkan kegagalan. Anda dapat menggunakan bidang ini untuk menentukan penyebab kegagalan. |
200 |
| Message |
string |
Paket yang dikembalikan untuk permintaan. |
successful |
| RequestId |
string |
ID permintaan, yaitu pengidentifikasi unik yang dibuat oleh Alibaba Cloud untuk permintaan tersebut. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
C8A137FB-6E18-5741-9B47-D9A0EBA3495F |
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
Contoh
Respons sukses
JSONformat
{
"Data": 30,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "C8A137FB-6E18-5741-9B47-D9A0EBA3495F",
"HttpStatusCode": 200
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | A service failure occurred. Try again later. |
| 403 | NoPermission | caller has no permission | The current operation is not authorized. Contact the Alibaba Cloud account to grant the required permissions in the RAM console, and then perform the operation again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.