:doc:`Inspector2 <../../inspector2>` / Client / get_delegated_admin_account

***************************
get_delegated_admin_account
***************************



.. py:method:: Inspector2.Client.get_delegated_admin_account()

  

  Retrieves information about the Amazon Inspector delegated administrator for your organization.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/inspector2-2020-06-08/GetDelegatedAdminAccount>`_  


  **Request Syntax**
  ::

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

    
    ::

      {
          'delegatedAdmin': {
              'accountId': 'string',
              'relationshipStatus': 'CREATED'|'INVITED'|'DISABLED'|'ENABLED'|'REMOVED'|'RESIGNED'|'DELETED'|'EMAIL_VERIFICATION_IN_PROGRESS'|'EMAIL_VERIFICATION_FAILED'|'REGION_DISABLED'|'ACCOUNT_SUSPENDED'|'CANNOT_CREATE_DETECTOR_IN_ORG_MASTER'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **delegatedAdmin** *(dict) --* 

        The Amazon Web Services account ID of the Amazon Inspector delegated administrator.

        
        

        - **accountId** *(string) --* 

          The Amazon Web Services account ID of the Amazon Inspector delegated administrator for your organization.

          
        

        - **relationshipStatus** *(string) --* 

          The status of the Amazon Inspector delegated administrator.

          
    
  
  **Exceptions**
  
  *   :py:class:`Inspector2.Client.exceptions.AccessDeniedException`

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

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

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

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

  