The method of using CreateNetworkInterface to create an elastic network card
This article is about how to use CreateNetworkInterface to create an elastic network card. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Description
The newly created elastic Nic is available (Available).
The ENI only supports VPC instances attached to the same availability zone.
An elastic Nic can only be attached to one instance, and you need to separate it from the current instance before attaching it to a new instance.
When the ENI is reattached to another instance, its properties follow the ENI, and network traffic will be redirected to the new instance.
A maximum of 100 ENI can be created for an account in an Aliyun region by default. If you need more, please submit a work order for application.
Request parameter
Return parameters
Example
Request example
Https://ecs.aliyuncs.com/?Action=CreateNetworkInterface&RegionId=cn-hangzhou&VSwitchId=[vswitchid]&SecurityGroupId=sg-c0003exxxxx&
Return the example
XML format
04F0F334-1335-436C-A1D7-6C044FExxxxx eni-eniIxxxxx
JSON format
{"RequestId": "04F0F334-1335-436C-A1D7-6C044FExxxxx", "NetworkInterfaceId": "eni-enixxxxx"}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
Thank you for reading! On the use of CreateNetworkInterface to create an elastic network card method to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.