Mengaktifkan atau menonaktifkan perlindungan penghapusan untuk instance SLB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:SetLoadBalancerDeleteProtection |
update |
*loadbalancer
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Wilayah tempat instans SLB ditempatkan. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
ID instans SLB. |
lb-bp1b6c719dfa08e***** |
| DeleteProtection |
string |
Yes |
Tentukan apakah akan mengaktifkan atau menonaktifkan perlindungan penghapusan untuk instans SLB. Nilai yang valid: on dan off. |
off |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
791D8B68-AE0F-4174-AF54-088C8B3C5D54 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "791D8B68-AE0F-4174-AF54-088C8B3C5D54"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | OperationUnsupported.DeleteProtectionForPrePayInstance | The operation failed because prepay instance does not support delete protection. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.