EC2 / Client / unassign_private_ip_addresses
unassign_private_ip_addresses#
- EC2.Client.unassign_private_ip_addresses(**kwargs)#
Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.
See also: AWS API Documentation
Request Syntax
response = client.unassign_private_ip_addresses( NetworkInterfaceId='string', PrivateIpAddresses=[ 'string', ], Ipv4Prefixes=[ 'string', ] )
- Parameters:
NetworkInterfaceId (string) –
[REQUIRED]
The ID of the network interface.
PrivateIpAddresses (list) –
The secondary private IP addresses to unassign from the network interface. You can specify this option multiple times to unassign more than one IP address.
(string) –
Ipv4Prefixes (list) –
The IPv4 prefixes to unassign from the network interface.
(string) –
- Returns:
None
Examples
This example unassigns the specified private IP address from the specified network interface.
response = client.unassign_private_ip_addresses( NetworkInterfaceId='eni-e5aa89a3', PrivateIpAddresses=[ '10.0.0.82', ], ) print(response)
Expected Output:
{ 'ResponseMetadata': { '...': '...', }, }