Skip to main content

ipam_discovered_public_addresses

Creates, updates, deletes, gets or lists an ipam_discovered_public_addresses resource.

Overview

Nameipam_discovered_public_addresses
TypeResource
Idaws.ec2.ipam_discovered_public_addresses

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
addressstringThe IP address.
address_allocation_idstringThe allocation ID of the resource the IP address is assigned to.
address_owner_idstringThe ID of the owner of the resource the IP address is assigned to.
address_regionstringThe Region of the resource the IP address is assigned to.
address_typestringThe IP address type.
association_statusstringThe association status.
instance_idstringThe instance ID of the instance the assigned IP address is assigned to.
ipam_resource_discovery_idstringThe resource discovery ID.
network_border_groupstringThe Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. Defaults to an AZ network border group. For more information on available Local Zones, see Local Zone availability in the Amazon EC2 User Guide.
network_interface_descriptionstringThe description of the network interface that IP address is assigned to.
network_interface_idstringThe network interface ID of the resource with the assigned IP address.
public_ipv_4_pool_idstringThe ID of the public IPv4 pool that the resource with the assigned IP address is from.
sample_timestringThe last successful resource discovery time.
security_groupsstringSecurity groups associated with the resource that the IP address is assigned to.
servicestringThe Amazon Web Services service associated with the IP address.
service_resourcestringThe resource ARN or ID.
subnet_idstringThe ID of the subnet that the resource with the assigned IP address is in.
tagsstringTags associated with the IP address.
vpc_idstringThe ID of the VPC that the resource with the assigned IP address is in.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_discovered_public_addressesselectIpamResourceDiscoveryId, AddressRegion, regionDryRun, Filter, NextToken, MaxResultsGets the public IP addresses that have been discovered by IPAM.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AddressRegionstringThe Amazon Web Services Region for the IP address.
IpamResourceDiscoveryIdstringAn IPAM resource discovery ID.
regionstringAWS region (default: us-east-1)
DryRunbooleanA check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayFilters.
MaxResultsintegerThe maximum number of IPAM discovered public addresses to return in one page of results.
NextTokenstringThe token for the next page of results.

SELECT examples

Gets the public IP addresses that have been discovered by IPAM.

SELECT
address,
address_allocation_id,
address_owner_id,
address_region,
address_type,
association_status,
instance_id,
ipam_resource_discovery_id,
network_border_group,
network_interface_description,
network_interface_id,
public_ipv_4_pool_id,
sample_time,
security_groups,
service,
service_resource,
subnet_id,
tags,
vpc_id
FROM aws.ec2.ipam_discovered_public_addresses
WHERE IpamResourceDiscoveryId = '{{ IpamResourceDiscoveryId }}' -- required
AND AddressRegion = '{{ AddressRegion }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;