:doc:`SecurityIncidentResponse <../../security-ir>` / Client / batch_get_member_account_details

********************************
batch_get_member_account_details
********************************



.. py:method:: SecurityIncidentResponse.Client.batch_get_member_account_details(**kwargs)

  

  Provides information on whether the supplied account IDs are associated with a membership.

   

  .. note::

    

    AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be ``123123123`` which is nine digits, and with zero-prepend would be ``000123123123``. Not zero-prepending to 12 digits could result in errors.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/security-ir-2018-05-10/BatchGetMemberAccountDetails>`_  


  **Request Syntax**
  ::

    response = client.batch_get_member_account_details(
        membershipId='string',
        accountIds=[
            'string',
        ]
    )
    
  :type membershipId: string
  :param membershipId: **[REQUIRED]** 

    Required element used in combination with BatchGetMemberAccountDetails to identify the membership ID to query.

    

  
  :type accountIds: list
  :param accountIds: **[REQUIRED]** 

    Optional element to query the membership relationship status to a provided list of account IDs.

     

    .. note::

      

      AWS account ID's may appear less than 12 characters and need to be zero-prepended. An example would be ``123123123`` which is nine digits, and with zero-prepend would be ``000123123123``. Not zero-prepending to 12 digits could result in errors.

      

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'items': [
              {
                  'accountId': 'string',
                  'relationshipStatus': 'Associated'|'Disassociated'|'Unassociated',
                  'relationshipType': 'Organization'|'Unrelated'
              },
          ],
          'errors': [
              {
                  'accountId': 'string',
                  'error': 'string',
                  'message': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The response element providing responses for requests to GetMembershipAccountDetails.

        
        

        - *(dict) --* 
          

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

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

          - **relationshipType** *(string) --* 
      
    
      

      - **errors** *(list) --* 

        The response element providing error messages for requests to GetMembershipAccountDetails.

        
        

        - *(dict) --* 
          

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

          - **error** *(string) --* 
          

          - **message** *(string) --* 
      
    
  
  **Exceptions**
  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ServiceQuotaExceededException`

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

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

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.SecurityIncidentResponseNotActiveException`

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

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

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

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

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.InvalidTokenException`

  