Mengubah alamat IP privat dan vSwitch instans ENS.
Deskripsi operasi
Saat Anda memanggil operasi ini, instans ENS harus berada dalam status Stopped. Perhatikan batasan berikut:
- Instans:
Instans yang terkait dengan load balancing tidak didukung.
- Jaringan:
Instans yang terkait dengan elastic IP address (EIP) tidak didukung.
Instans yang terkait dengan virtual IP address Ketersediaan Tinggi (HA) tidak didukung.
Instans yang berfungsi sebagai lompatan berikutnya di tabel rute tidak didukung.
Instans dengan secondary elastic network interfaces (ENI) terpasang tidak didukung.
Instans dengan secondary IP address yang dikonfigurasi tidak didukung.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ModifyInstanceNetworkAttribute |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans ENS. |
i-5myukg7hnpbto7m024002**** |
| VSwitchId |
string |
No |
ID vSwitch.
|
vsw-5rllcjb3ol6duzjdnbm1o**** |
| PrivateIpAddress |
string |
No |
Alamat IP privat baru. Nilai default: Jika Anda tidak menentukan parameter ini, alamat IP privat akan ditetapkan secara acak dari Blok CIDR vSwitch. |
192.168.XX.XX |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
125B04C7-3D0D-4245-AF96-14E3758E3F06 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "125B04C7-3D0D-4245-AF96-14E3758E3F06"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ens.interface.error | Failed to call API. | |
| 400 | InvalidDependence.%s | The Specified operation is denied due to %s. | |
| 400 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 400 | InvalidInstanceType.NotSupported | The specified InstanceType is not Supported. | |
| 400 | IncorrectNetworkInterfaceStatus | The operation could not be completed because the status of the specified network interface is invalid for this action. | |
| 400 | InvalidVSwitchId.NotFound | Specified virtual switch does not exist. | |
| 400 | IncorrectVSwitchStatus | The current status of virtual switch does not support this operation. | |
| 400 | InvalidPrivateIpAddress.Mismatch | Specified private IP address is not in the CIDR block of virtual switch. | |
| 400 | InvalidPrivateIpAddress.Duplicated | The specified private IP address is duplicated. | |
| 400 | InvalidVSwitchId.IpNotEnough | The specified virtual switch has not enough available ip. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 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.