Skip to main content

ipam_discovered_accounts

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

Overview

Nameipam_discovered_accounts
TypeResource
Idaws.ec2.ipam_discovered_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID.
discovery_regionstringThe Amazon Web Services Region that the account information is returned from. An account can be discovered in multiple regions and will have a separate discovered account for each Region.
failure_reasonstringThe resource discovery failure reason.
last_attempted_discovery_timestringThe last attempted resource discovery time.
last_successful_discovery_timestringThe last successful resource discovery time.
organizational_unit_idstringThe ID of an Organizational Unit in Amazon Web Services Organizations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_ipam_discovered_accountsselectIpamResourceDiscoveryId, DiscoveryRegion, regionDryRun, Filter, NextToken, MaxResultsGets IPAM discovered accounts. A discovered account is an Amazon Web Services account that is monitored under a resource discovery. If you have integrated IPAM with Amazon Web Services Organizations, all accounts in the organization are discovered accounts. Only the IPAM account can get all discovered accounts in the organization.

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
DiscoveryRegionstringThe Amazon Web Services Region that the account information is returned from.
IpamResourceDiscoveryIdstringA 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.
FilterarrayDiscovered account filters.
MaxResultsintegerThe maximum number of discovered accounts to return in one page of results.
NextTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Gets IPAM discovered accounts. A discovered account is an Amazon Web Services account that is monitored under a resource discovery. If you have integrated IPAM with Amazon Web Services Organizations, all accounts in the organization are discovered accounts. Only the IPAM account can get all discovered accounts in the organization.

SELECT
account_id,
discovery_region,
failure_reason,
last_attempted_discovery_time,
last_successful_discovery_time,
organizational_unit_id
FROM aws.ec2.ipam_discovered_accounts
WHERE IpamResourceDiscoveryId = '{{ IpamResourceDiscoveryId }}' -- required
AND DiscoveryRegion = '{{ DiscoveryRegion }}' -- required
AND region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
AND Filter = '{{ Filter }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
;