mgn / Client / list_managed_accounts

list_managed_accounts#

mgn.Client.list_managed_accounts(**kwargs)#

List Managed Accounts.

See also: AWS API Documentation

Request Syntax

response = client.list_managed_accounts(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – List managed accounts request max results.

  • nextToken (string) – List managed accounts request next token.

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'accountId': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    List managed accounts response.

    • items (list) –

      List managed accounts response items.

      • (dict) –

        Managed account.

        • accountId (string) –

          Managed account, account ID.

    • nextToken (string) –

      List managed accounts response next token.

Exceptions

  • mgn.Client.exceptions.UninitializedAccountException

  • mgn.Client.exceptions.ValidationException