Adds an IPv6 network interface and automatically assigns a public IP address.
Operation description
API call rate: 100 calls per second.
Call rate per user: 5 calls per second.
Internal networks and IPv4 are not supported.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AddNetworkInterfaceToInstance |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
yourInstance ID |
| Networks |
string |
Yes |
The network parameters in JSON string format. Currently, only IPv6 is supported. An example of adding an IPv6 gateway is as follows: [{"ipType": "public", "ipAddressType": "ipv6"}] |
[{"ipType": "public", "ipAddressType": "ipv6" }] |
| AutoStart |
boolean |
No |
Specifies whether to automatically restart the instance. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
|
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. | An error occurred when you call the operation. |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.