DetachNetworkInterface#

Description#

The request to detach a network interface from the specified instance.

Important

Primary network interface cannot be detached. To determine whether an interface is the primary interface of an instance, you can check the output of DescribeNetworkInterfaces method: value of DeviceIndex attribute should be zero.

Request Parameters#

  • AttachmentId — The ID of the attachment.

    • Type: String

    • Required: Yes

Response Elements#

  • requestId — The request ID.

    • Type: String

  • returnTrue is returned if the request succeeds, and an error otherwise.

    • Type: Boolean

Examples#

c2-ec2 DetachNetworkInterface AttachmentId eni-attach-12345678