SecurityHub / Client / list_organization_admin_accounts
list_organization_admin_accounts#
- SecurityHub.Client.list_organization_admin_accounts(**kwargs)#
Lists the Security Hub administrator accounts. Can only be called by the organization management account.
See also: AWS API Documentation
Request Syntax
response = client.list_organization_admin_accounts( MaxResults=123, NextToken='string' )
- Parameters:
MaxResults (integer) – The maximum number of items to return in the response.
NextToken (string) – The token that is required for pagination. On your first call to the
ListOrganizationAdminAccounts
operation, set the value of this parameter toNULL
. For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'AdminAccounts': [ { 'AccountId': 'string', 'Status': 'ENABLED'|'DISABLE_IN_PROGRESS' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
AdminAccounts (list) –
The list of Security Hub administrator accounts.
(dict) –
Represents a Security Hub administrator account designated by an organization management account.
AccountId (string) –
The Amazon Web Services account identifier of the Security Hub administrator account.
Status (string) –
The current status of the Security Hub administrator account. Indicates whether the account is currently enabled as a Security Hub administrator.
NextToken (string) –
The pagination token to use to request the next page of results.
Exceptions
SecurityHub.Client.exceptions.InternalException
SecurityHub.Client.exceptions.InvalidInputException
SecurityHub.Client.exceptions.InvalidAccessException
SecurityHub.Client.exceptions.LimitExceededException