Home  >  Article  >  Operation and Maintenance  >  Use DetachNetworkInterface to detach an elastic network interface (ENI) from an instance

Use DetachNetworkInterface to detach an elastic network interface (ENI) from an instance

坏嘻嘻
坏嘻嘻Original
2018-09-26 14:31:182320browse

This article introduces the use of DetachNetworkInterface to detach the elastic network interface (ENI) from an instance, and focuses on the specific steps. The content of this article is compact, and I hope you can gain something.

DetachNetworkInterface

Description

Detaching the instance primary network card is not allowed.

The elastic network card must be in the bound (InUse) state.

The instance must be in Running or Stopped status.

Request parameters

Use DetachNetworkInterface to detach an elastic network interface (ENI) from an instance

##Return parameters

are all public return parameters. See Public Parameters.

Example

Request example

https://ecs.aliyuncs.com/?Action=DetachNetworkInterface
&RegionId=cn-hangzhou
&NetworkInterfaceId=[networkInterfaceId]
&InstanceId=AY121018033933eaxxxxx
&<公共请求参数>

Return example

XML format

<DetachNetworkInterfaceResponse>
    <RequestId>04F0F334-1335-436C-A1D7-6C044FExxxxx</RequestId>
</DetachNetworkInterfaceResponse>

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FExxxxx",
}

Error code

The following are error codes unique to this interface. For more error codes, please visit the API Error Center.

Use DetachNetworkInterface to detach an elastic network interface (ENI) from an instance

The above is the detailed content of Use DetachNetworkInterface to detach an elastic network interface (ENI) from an instance. 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