The method of attaching elastic Nic ENI to the instance of proprietary network VPC type
This article will explain in detail the method of attaching elastic Nic ENI to proprietary network VPC type instances. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
AttachNetworkInterface
Description
The elastic Nic must be available (Available).
The instance must be in a running (Running) or stopped (Stopped) state.
The ENI can only be attached to an instance of VPC type and must be in the same VPC as the instance.
An elastic Nic can only be attached to one instance at the same time.
Multiple ENI can be attached to an instance at the same time. See ENI to check the number of ENI that can be attached to the specifications of each instance.
Because the VPC virtual switch cannot span the availability zone, the attached instance of the ENI must belong to the same availability zone as the switch where the ENI is located.
Request parameter
Return parameters
All are common return parameters. See common parameters.
Example
Request example
Https://ecs.aliyuncs.com/?Action=AttachNetworkInterface&RegionId=cn-hangzhou&NetworkInterfaceId=[networkInterfaceId]&InstanceId=AY121018033933eae8xxxxx&
Return the example
XML format
04F0F334-1335-436C-A1D7-6C044FExxxxx
JSON format
{"RequestId": "04F0F334-1335-436C-A1D7-6C044FExxxxx"}
Error code
The following are the error codes specific to this API. For more error codes, please visit the API error Center.
This is the end of the method of attaching the elastic Nic ENI to the proprietary network VPC type instance. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.