FMS / Client / list_admins_managing_account

list_admins_managing_account#

FMS.Client.list_admins_managing_account(**kwargs)#

Lists the accounts that are managing the specified Organizations member account. This is useful for any member account so that they can view the accounts who are managing their account. This operation only returns the managing administrators that have the requested account within their AdminScope.

See also: AWS API Documentation

Request Syntax

response = client.list_admins_managing_account(
    NextToken='string',
    MaxResults=123
)
Parameters:
  • NextToken (string) – When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

  • MaxResults (integer) – The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a NextToken value that you can use in a subsequent call to get the next batch of objects.

Return type:

dict

Returns:

Response Syntax

{
    'AdminAccounts': [
        'string',
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • AdminAccounts (list) –

      The list of accounts who manage member accounts within their AdminScope.

      • (string) –

    • NextToken (string) –

      When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

Exceptions

  • FMS.Client.exceptions.ResourceNotFoundException

  • FMS.Client.exceptions.InvalidInputException

  • FMS.Client.exceptions.InternalErrorException