aws.organizations.list_accounts_for_parent
Example SQL Queries
SELECT * FROMaws.organizations.list_accounts_for_parentWHERE"parent_id" = 'VALUE';Description
Lists the accounts in an organization that are contained by the specified target root or organizational unit (OU). If you specify the root, you get a list of all the accounts that aren't in any OU. If you specify an OU, you get a list of all the accounts in only that OU and not in any child OUs. To get a list of all accounts in the organization, use the ListAccounts operation.
Always check the NextToken response parameter for a null value when calling a List* operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken response parameter value is null only when there are no more results to display.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator for an Amazon Web Services service.
Table Definition
| Column Name | Column Data Type |
|---|---|
| parent_id Required Input Column The unique identifier (ID) for the parent root or organization unit (OU) whose accounts you want to list. | VARCHAR |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| arn The Amazon Resource Name (ARN) of the account. For more information about ARNs in Organizations, see ARN Formats Supported by Organizations in the Amazon Web Services Service Authorization Reference. | VARCHAR |
| email The email address associated with the Amazon Web Services account. The regex pattern for this parameter is a string of characters that represents a standard internet email address. | VARCHAR |
| id The unique identifier (ID) of the account. The regex pattern for an account ID string requires exactly 12 digits. | VARCHAR |
| joined_method The method by which the account joined the organization. | VARCHAR |
| joined_timestamp The date the account became a part of the organization. | TIMESTAMP_S |
| name The friendly name of the account. The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range. | VARCHAR |
| status The status of the account in the organization. | VARCHAR |