:doc:`DeviceFarm <../../devicefarm>` / Client / get_account_settings

********************
get_account_settings
********************



.. py:method:: DeviceFarm.Client.get_account_settings()

  

  Returns the number of unmetered iOS or unmetered Android devices that have been purchased by the account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetAccountSettings>`_  


  **Request Syntax**
  ::

    response = client.get_account_settings()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'accountSettings': {
              'awsAccountNumber': 'string',
              'unmeteredDevices': {
                  'string': 123
              },
              'unmeteredRemoteAccessDevices': {
                  'string': 123
              },
              'maxJobTimeoutMinutes': 123,
              'trialMinutes': {
                  'total': 123.0,
                  'remaining': 123.0
              },
              'maxSlots': {
                  'string': 123
              },
              'defaultJobTimeoutMinutes': 123,
              'skipAppResign': True|False
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Represents the account settings return values from the ``GetAccountSettings`` request.

      
      

      - **accountSettings** *(dict) --* 

        The account settings.

        
        

        - **awsAccountNumber** *(string) --* 

          The AWS account number specified in the ``AccountSettings`` container.

          
        

        - **unmeteredDevices** *(dict) --* 

          Returns the unmetered devices you have purchased or want to purchase.

          
          

          - *(string) --* 
            

            - *(integer) --* 
      
    
        

        - **unmeteredRemoteAccessDevices** *(dict) --* 

          Returns the unmetered remote access devices you have purchased or want to purchase.

          
          

          - *(string) --* 
            

            - *(integer) --* 
      
    
        

        - **maxJobTimeoutMinutes** *(integer) --* 

          The maximum number of minutes a test run executes before it times out.

          
        

        - **trialMinutes** *(dict) --* 

          Information about an AWS account's usage of free trial device minutes.

          
          

          - **total** *(float) --* 

            The total number of free trial minutes that the account started with.

            
          

          - **remaining** *(float) --* 

            The number of free trial minutes remaining in the account.

            
      
        

        - **maxSlots** *(dict) --* 

          The maximum number of device slots that the AWS account can purchase. Each maximum is expressed as an ``offering-id:number`` pair, where the ``offering-id`` represents one of the IDs returned by the ``ListOfferings`` command.

          
          

          - *(string) --* 
            

            - *(integer) --* 
      
    
        

        - **defaultJobTimeoutMinutes** *(integer) --* 

          The default number of minutes (at the account level) a test run executes before it times out. The default value is 150 minutes.

          
        

        - **skipAppResign** *(boolean) --* 

          When set to ``true``, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.

           

          For more information about how Device Farm re-signs your apps, see `Do you modify my app? <http://aws.amazon.com/device-farm/faqs/>`__ in the *AWS Device Farm FAQs*.

          
    
  
  **Exceptions**
  
  *   :py:class:`DeviceFarm.Client.exceptions.ArgumentException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.NotFoundException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.LimitExceededException`

  
  *   :py:class:`DeviceFarm.Client.exceptions.ServiceAccountException`

  

  **Examples**

  The following example returns information about your Device Farm account settings.
  ::

    response = client.get_account_settings(
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'accountSettings': {
            'awsAccountNumber': '123456789101',
            'unmeteredDevices': {
                'ANDROID': 1,
                'IOS': 2,
            },
        },
        'ResponseMetadata': {
            '...': '...',
        },
    }

  