:doc:`GuardDuty <../../guardduty>` / Client / get_master_account

******************
get_master_account
******************



.. py:method:: GuardDuty.Client.get_master_account(**kwargs)

  

  Provides the details for the GuardDuty administrator account associated with the current GuardDuty member account.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetMasterAccount>`_  


  **Request Syntax**
  ::

    response = client.get_master_account(
        DetectorId='string'
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The unique ID of the detector of the GuardDuty member account.

     

    To find the ``detectorId`` in the current Region, see the Settings page in the GuardDuty console, or run the `ListDetectors <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListDetectors.html>`__ API.

    

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

    
    ::

      {
          'Master': {
              'AccountId': 'string',
              'InvitationId': 'string',
              'RelationshipStatus': 'string',
              'InvitedAt': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Master** *(dict) --* 

        The administrator account details.

        
        

        - **AccountId** *(string) --* 

          The ID of the account used as the administrator account.

          
        

        - **InvitationId** *(string) --* 

          The value used to validate the administrator account to the member account.

          
        

        - **RelationshipStatus** *(string) --* 

          The status of the relationship between the administrator and member accounts.

          
        

        - **InvitedAt** *(string) --* 

          The timestamp when the invitation was sent.

          
    
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  