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
##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.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!