aws.organizations.list_accounts
Example SQL Queries
SELECT * FROMaws.organizations.list_accounts;Description
Lists all the accounts in the organization. To request only the accounts in a specified root or organizational unit (OU), use the ListAccountsForParent operation instead.
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 |
|---|---|
| _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 |