Skip to content

Gets IPAM discovered accounts

Description

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.

Usage

ec2_get_ipam_discovered_accounts(DryRun, IpamResourceDiscoveryId,
  DiscoveryRegion, Filters, NextToken, MaxResults)

Arguments

  • DryRun

    A 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.

  • IpamResourceDiscoveryId

    [required] A resource discovery ID.

  • DiscoveryRegion

    [required] The Amazon Web Services Region that the account information is returned from.

  • Filters

    Discovered account filters.

  • NextToken

    Specify the pagination token from a previous request to retrieve the next page of results.

  • MaxResults

    The maximum number of discovered accounts to return in one page of results.

Value

A list with the following syntax:

list(
  IpamDiscoveredAccounts = list(
    list(
      AccountId = "string",
      DiscoveryRegion = "string",
      FailureReason = list(
        Code = "assume-role-failure"|"throttling-failure"|"unauthorized-failure",
        Message = "string"
      ),
      LastAttemptedDiscoveryTime = as.POSIXct(
        "2015-01-01"
      ),
      LastSuccessfulDiscoveryTime = as.POSIXct(
        "2015-01-01"
      ),
      OrganizationalUnitId = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$get_ipam_discovered_accounts(
  DryRun = TRUE|FALSE,
  IpamResourceDiscoveryId = "string",
  DiscoveryRegion = "string",
  Filters = list(
    list(
      Name = "string",
      Values = list(
        "string"
      )
    )
  ),
  NextToken = "string",
  MaxResults = 123
)