Home >Operation and Maintenance >Linux Operation and Maintenance >Use CreateNetworkInterface to create an elastic network card

Use CreateNetworkInterface to create an elastic network card

坏嘻嘻
坏嘻嘻Original
2018-09-26 13:41:592580browse

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

Use CreateNetworkInterface to create an elastic network card

##Return parameters

Use CreateNetworkInterface to create an elastic network card

Example

Request Example

https://ecs.aliyuncs.com/?Action=CreateNetworkInterface
&RegionId=cn-hangzhou
&VSwitchId=[vswitchid]
&SecurityGroupId=sg-c0003exxxxx
&<公共请求参数>

Return example

XML format

<CreateNetworkInterfaceResponse>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FExxxxx</RequestId>
    <NetworkInterfaceId>eni-eniIxxxxx</NetworkInterfaceId>
</CreateNetworkInterfaceResponse>

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.

Use CreateNetworkInterface to create an elastic network card

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn