Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

UnassignIpv6Addresses - Amazon Elastic Compute Cloud

UnassignIpv6Addresses

Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

Ipv6Addresses.N

The IPv6 addresses to unassign from the network interface.

Type: Array of strings

Required: No

Ipv6Prefix.N

The IPv6 prefixes to unassign from the network interface.

Type: Array of strings

Required: No

NetworkInterfaceId

The ID of the network interface.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.

networkInterfaceId

The ID of the network interface.

Type: String

requestId

The ID of the request.

Type: String

unassignedIpv6Addresses

The IPv6 addresses that have been unassigned from the network interface.

Type: Array of strings

unassignedIpv6PrefixSet

The IPv6 prefixes that have been unassigned from the network interface.

Type: Array of strings

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

The following example unassigns two IPv6 addresses from the specified network interface.

Sample Request

https://ec2.amazonaws.com/?Action=UnassignIpv6Addresses &NetworkInterfaceId=eni-197d9972 &Ipv6Addresses.1=2001:db8:1234:1a00::123 &Ipv6Addresses.2=2001:db8:1234:1a00::456 &AUTHPARAMS

Sample Response

<UnassignIpv6AddressesResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>94d446d7-fc8e-4918-94f9-example</requestId> <networkInterfaceId>eni-197d9972</networkInterfaceId> <unassignedIpv6Addresses> <item>2001:db8:1234:1a00::123</item> <item>2001:db8:1234:1a00::456</item> </unassignedIpv6Addresses> </UnassignIpv6AddressesResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.