Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

UnassignIpv6Addresses

Unassigns one or more IPv6 addresses 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: Yes

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

Errors

For information about the errors that are common to all actions, see Common Errors.

Example

Example

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

Sample Request

Copy
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

Copy
<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: