Memanggil AddNetworkInterfaceToInstance untuk menambahkan antarmuka jaringan IPv6 dan secara otomatis mengalokasikan alamat IP publik.
Deskripsi operasi
Laju panggilan API: 100 panggilan per detik.
Laju panggilan per pengguna: 5 panggilan per detik.
Jaringan internal dan tipe IPv4 tidak didukung.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AddNetworkInterfaceToInstance |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instance. |
yourInstance ID |
| Networks |
string |
Yes |
Parameter jaringan, dalam format string JSON. Saat ini, hanya IPv6 yang didukung. Contoh penambahan gateway IPv6 adalah sebagai berikut: [{ "ipType": "public", "ipAddressType": "ipv6" }] |
[{"ipType": "public", "ipAddressType": "ipv6" }] |
| AutoStart |
boolean |
No |
Menentukan apakah akan memulai ulang secara otomatis. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | CallInterface | Call Interface Happen Error. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.