Home>Article>Operation and Maintenance> Use CreateNetworkInterface to create an elastic network card
This article introduces the use of CreateNetworkInterface to create an elastic network card, and focuses on its specific steps. The content of this article is compact, and I hope everyone can gain something.
CreateNetworkInterface
Description
The newly created elastic network card is available (Available) status.
Elastic network cards only support VPC type instances attached to the same availability zone.
An elastic network card can only be attached to one instance. You need to detach it from the current instance before attaching it to a new instance.
When the elastic network card is reattached to another instance, its properties follow the elastic network card, and network traffic is also redirected to the new instance.
An account can create up to 100 elastic network cards by default in an Alibaba Cloud region. If you need more, please submit a ticket request.
Request parameters
##Return parameters
Example
Request Example
https://ecs.aliyuncs.com/?Action=CreateNetworkInterface &RegionId=cn-hangzhou &VSwitchId=[vswitchid] &SecurityGroupId=sg-c0003exxxxx &<公共请求参数>
Return 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 error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of Use CreateNetworkInterface to create an elastic network card. For more information, please follow other related articles on the PHP Chinese website!