:doc:`DataZone <../../datazone>` / Client / list_accounts_in_account_pool

*****************************
list_accounts_in_account_pool
*****************************



.. py:method:: DataZone.Client.list_accounts_in_account_pool(**kwargs)

  

  Lists the accounts in the specified account pool.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/ListAccountsInAccountPool>`_  


  **Request Syntax**
  ::

    response = client.list_accounts_in_account_pool(
        domainIdentifier='string',
        identifier='string',
        nextToken='string',
        maxResults=123
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The ID of the domain in which the accounts in the specified account pool are to be listed.

    

  
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The ID of the account pool whose accounts are to be listed.

    

  
  :type nextToken: string
  :param nextToken: 

    When the number of accounts is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of accounts, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of accounts to return in a single call to ListAccountsInAccountPool. When the number of accounts to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'items': [
              {
                  'awsAccountId': 'string',
                  'supportedRegions': [
                      'string',
                  ],
                  'awsAccountName': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The results of the ListAccountsInAccountPool operation.

        
        

        - *(dict) --* 

          The account information within an account pool.

          
          

          - **awsAccountId** *(string) --* 

            The account ID.

            
          

          - **supportedRegions** *(list) --* 

            The regions supported for an account within an account pool.

            
            

            - *(string) --* 
        
          

          - **awsAccountName** *(string) --* 

            The account name.

            
      
    
      

      - **nextToken** *(string) --* 

        When the number of accounts is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of accounts, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListAccountsInAccountPool to list the next set of accounts.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

  
  *   :py:class:`DataZone.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`DataZone.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DataZone.Client.exceptions.ThrottlingException`

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  