:doc:`drs <../../drs>` / Client / list_staging_accounts

*********************
list_staging_accounts
*********************



.. py:method:: drs.Client.list_staging_accounts(**kwargs)

  

  Returns an array of staging accounts for existing extended source servers.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/drs-2020-02-26/ListStagingAccounts>`_  


  **Request Syntax**
  ::

    response = client.list_staging_accounts(
        maxResults=123,
        nextToken='string'
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of staging Accounts to retrieve.

    

  
  :type nextToken: string
  :param nextToken: 

    The token of the next staging Account to retrieve.

    

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

    
    ::

      {
          'accounts': [
              {
                  'accountID': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **accounts** *(list) --* 

        An array of staging AWS Accounts.

        
        

        - *(dict) --* 

          AWS account.

          
          

          - **accountID** *(string) --* 

            Account ID of AWS account.

            
      
    
      

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

        The token of the next staging Account to retrieve.

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

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

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

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

  
  *   :py:class:`drs.Client.exceptions.UninitializedAccountException`

  