Panggil DetachNetworkInterface untuk melepaskan elastic network interface (ENI) dari sebuah instance.
Deskripsi operasi
Saat memanggil operasi ini, perhatikan hal berikut:
Anda tidak dapat melepaskan ENI utama dari sebuah instance.
ENI harus dalam status terpasang (InUse).
Instance harus dalam status berhenti (Stopped).
Operasi ini bersifat asinkron. Setelah pemanggilan berhasil, Anda dapat menanyakan status ENI untuk memeriksa hasil operasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DetachNetworkInterface |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NetworkInterfaceId |
string |
Yes |
ID dari ENI. |
eni-58z57orgmt6d1**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
ID permintaan. |
BE1B8ECF-9507-4C78-B197-5DE9FED344AF |
Contoh
Respons sukses
JSONformat
{
"RequestId": "BE1B8ECF-9507-4C78-B197-5DE9FED344AF"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | InvalidEniId.NotFound | The specified NetworkInterfaceId does not exist. | |
| 400 | InvalidParameter.EniServiceManaged | The eni is managed by service. | |
| 400 | InvalidOperation.InvalidEniStatus | Current eni status does not support this operation. | |
| 400 | InvalidOperation.InvalidEniType | The type of eni does not support this operation. | |
| 400 | InvalidOperation.InvalidEnsStatus | Current instance status does not support this operation. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.