Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DetachNetworkInterface

Description

Detaches a network interface from an instance.

Request Parameters

AttachmentId

The ID of the attachment.

Type: String

Default: None

Required: Yes

Force

Set to true to force a detachment.

Type: Boolean

Default: None

Required: No

Response Elements

The following elements are returned in a DetachNetworkInterfaceResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example detaches an elastic network interface (ENI) eni-attach-d94b09b0.

https://ec2.amazonaws.com/?Action=DetachNetworkInterface
&AttachmentId=eni-attach-d94b09b0
&AUTHPARAMS

Example Response

<DetachNetworkInterfaceResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
    <requestId>ce540707-0635-46bc-97da-33a8a362a0e8</requestId>
    <return>true</return>
</DetachNetworkInterfaceResponse>