UnassignIpv6Addresses - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

UnassignIpv6Addresses

Unassigns one or more IPv6 addresses IPv4 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 IPv4 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 Amazon SDKs, see the following: