| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Detaches a network interface from an instance.
AttachmentIdThe ID of the attachment.
Type: String
Default: None
Required: Yes
ForceSet to true to force a detachment.
Type: Boolean
Default: None
Required: No
The following elements are returned in a
DetachNetworkInterfaceResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise,
returns an error.
Type: xsd:boolean
This example detaches an elastic network interface (ENI)
eni-attach-d94b09b0.
https://ec2.amazonaws.com/?Action=DetachNetworkInterface &AttachmentId=eni-attach-d94b09b0 &AUTHPARAMS
<DetachNetworkInterfaceResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
<requestId>ce540707-0635-46bc-97da-33a8a362a0e8</requestId>
<return>true</return>
</DetachNetworkInterfaceResponse>