FMS / Client / list_member_accounts
list_member_accounts¶
- FMS.Client.list_member_accounts(**kwargs)¶
Returns a
MemberAccountsobject that lists the member accounts in the administrator’s Amazon Web Services organization.Either an Firewall Manager administrator or the organization’s management account can make this request.
See also: AWS API Documentation
Request Syntax
response = client.list_member_accounts( NextToken='string', MaxResults=123 )
- Parameters:
NextToken (string) – If you specify a value for
MaxResultsand you have more account IDs than the number that you specify forMaxResults, Firewall Manager returns aNextTokenvalue in the response that allows you to list another group of IDs. For the second and subsequentListMemberAccountsRequestrequests, specify the value ofNextTokenfrom the previous response to get information about another batch of member account IDs.MaxResults (integer) – Specifies the number of member account IDs that you want Firewall Manager to return for this request. If you have more IDs than the number that you specify for
MaxResults, the response includes aNextTokenvalue that you can use to get another batch of member account IDs.
- Return type:
dict
- Returns:
Response Syntax
{ 'MemberAccounts': [ 'string', ], 'NextToken': 'string' }
Response Structure
(dict) –
MemberAccounts (list) –
An array of account IDs.
(string) –
NextToken (string) –
If you have more member account IDs than the number that you specified for
MaxResultsin the request, the response includes aNextTokenvalue. To list more IDs, submit anotherListMemberAccountsrequest, and specify theNextTokenvalue from the response in theNextTokenvalue in the next request.
Exceptions
FMS.Client.exceptions.ResourceNotFoundExceptionFMS.Client.exceptions.InternalErrorException