:doc:`ResourceExplorer <../../resource-explorer-2>` / Client / get_account_level_service_configuration

***************************************
get_account_level_service_configuration
***************************************



.. py:method:: ResourceExplorer.Client.get_account_level_service_configuration()

  

  Retrieves the status of your account's Amazon Web Services service access, and validates the service linked role required to access the multi-account search feature. Only the management account can invoke this API call.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/resource-explorer-2-2022-07-28/GetAccountLevelServiceConfiguration>`_  


  **Request Syntax**

  ::

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

    
    ::

      {
          'OrgConfiguration': {
              'AWSServiceAccessStatus': 'ENABLED'|'DISABLED',
              'ServiceLinkedRole': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **OrgConfiguration** *(dict) --* 

        Details about the organization, and whether configuration is ``ENABLED`` or ``DISABLED``.

        
        

        - **AWSServiceAccessStatus** *(string) --* 

          This value displays whether your Amazon Web Services service access is ``ENABLED`` or ``DISABLED``.

          
        

        - **ServiceLinkedRole** *(string) --* 

          This value shows whether or not you have a valid a service-linked role required to start the multi-account search feature.

          
    
  
  **Exceptions**
  
  *   :py:class:`ResourceExplorer.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ResourceExplorer.Client.exceptions.InternalServerException`

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

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

  