NetworkSecurityManagerCustomerAPI / Client / list_admin_accounts

list_admin_accounts

NetworkSecurityManagerCustomerAPI.Client.list_admin_accounts(**kwargs)

Lists the AWS Network Security Manager administrator accounts in the organization.

See also: AWS API Documentation

Request Syntax

response = client.list_admin_accounts(
    maxResults=123,
    nextToken='string'
)
Parameters:
  • maxResults (integer) – The maximum number of results to return in a single call. Valid range: 1-100. To retrieve the remaining results, use the returned nextToken value in a subsequent call.

  • nextToken (string) – The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.

Return type:

dict

Returns:

Response Syntax

{
    'nextToken': 'string',
    'adminAccounts': [
        {
            'accountId': 'string',
            'priority': 123,
            'name': 'string',
            'email': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • nextToken (string) –

      The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.

    • adminAccounts (list) –

      The list of administrator accounts.

      • (dict) –

        Summary information about an AWS Network Security Manager administrator account.

        • accountId (string) –

          The AWS account ID.

        • priority (integer) –

          The priority assigned to the administrator account.

        • name (string) –

          The name of the administrator account.

        • email (string) –

          The email address associated with the account.

Exceptions

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.ValidationException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.InternalServerException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.AccessDeniedException

  • NetworkSecurityManagerCustomerAPI.Client.exceptions.ThrottlingException