:doc:`Macie2 <../../macie2>` / Client / get_master_account

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



.. py:method:: Macie2.Client.get_master_account()

  

  (Deprecated) Retrieves information about the Amazon Macie administrator account for an account. This operation has been replaced by the GetAdministratorAccount operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMasterAccount>`_  


  **Request Syntax**
  ::

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

    
    ::

      {
          'master': {
              'accountId': 'string',
              'invitationId': 'string',
              'invitedAt': datetime(2015, 1, 1),
              'relationshipStatus': 'Enabled'|'Paused'|'Invited'|'Created'|'Removed'|'Resigned'|'EmailVerificationInProgress'|'EmailVerificationFailed'|'RegionDisabled'|'AccountSuspended'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The request succeeded.

      
      

      - **master** *(dict) --* 

        (Deprecated) The Amazon Web Services account ID for the administrator account. If the accounts are associated by a Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.

        
        

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

          The Amazon Web Services account ID for the account that sent the invitation.

          
        

        - **invitationId** *(string) --* 

          The unique identifier for the invitation.

          
        

        - **invitedAt** *(datetime) --* 

          The date and time, in UTC and extended ISO 8601 format, when the invitation was sent.

          
        

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

          The status of the relationship between the account that sent the invitation and the account that received the invitation.

          
    
  
  **Exceptions**
  
  *   :py:class:`Macie2.Client.exceptions.ValidationException`

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

  
  *   :py:class:`Macie2.Client.exceptions.ServiceQuotaExceededException`

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

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

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

  
  *   :py:class:`Macie2.Client.exceptions.ConflictException`

  