Skip to main content

accounts_list_only

Lists accounts in a region or regions, for all properties use accounts

Overview

Nameaccounts_list_only
TypeResource
DescriptionYou can use AWS::Organizations::Account to manage accounts in organization.
Idaws.organizations.accounts_list_only

Fields

NameDatatypeDescription
account_idstringIf the account was created successfully, the unique identifier (ID) of the new account.
regionstringAWS region.

Methods

NameAccessible byRequired Params
list_resourcesSELECTregion

SELECT examples

Lists all accounts in a region.

SELECT
region,
account_id
FROM aws.organizations.accounts_list_only
WHERE region = 'us-east-1';

Permissions

For permissions required to operate on the accounts_list_only resource, see accounts