:doc:`PartnerCentralChannelAPI <../../partnercentral-channel>` / Client / get_relationship

****************
get_relationship
****************



.. py:method:: PartnerCentralChannelAPI.Client.get_relationship(**kwargs)

  

  Retrieves details of a specific partner relationship.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/partnercentral-channel-2024-03-18/GetRelationship>`_  


  **Request Syntax**
  ::

    response = client.get_relationship(
        catalog='string',
        programManagementAccountIdentifier='string',
        identifier='string'
    )
    
  :type catalog: string
  :param catalog: **[REQUIRED]** 

    The catalog identifier for the relationship.

    

  
  :type programManagementAccountIdentifier: string
  :param programManagementAccountIdentifier: **[REQUIRED]** 

    The identifier of the program management account associated with the relationship.

    

  
  :type identifier: string
  :param identifier: **[REQUIRED]** 

    The unique identifier of the relationship to retrieve.

    

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

    
    ::

      {
          'relationshipDetail': {
              'arn': 'string',
              'id': 'string',
              'revision': 'string',
              'catalog': 'string',
              'associationType': 'DOWNSTREAM_SELLER'|'END_CUSTOMER'|'INTERNAL',
              'programManagementAccountId': 'string',
              'associatedAccountId': 'string',
              'displayName': 'string',
              'resaleAccountModel': 'DISTRIBUTOR'|'END_CUSTOMER'|'SOLUTION_PROVIDER',
              'sector': 'COMMERCIAL'|'GOVERNMENT'|'GOVERNMENT_EXCEPTION',
              'createdAt': datetime(2015, 1, 1),
              'updatedAt': datetime(2015, 1, 1),
              'startDate': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **relationshipDetail** *(dict) --* 

        Details of the requested relationship.

        
        

        - **arn** *(string) --* 

          The Amazon Resource Name (ARN) of the relationship.

          
        

        - **id** *(string) --* 

          The unique identifier of the relationship.

          
        

        - **revision** *(string) --* 

          The current revision number of the relationship.

          
        

        - **catalog** *(string) --* 

          The catalog identifier associated with the relationship.

          
        

        - **associationType** *(string) --* 

          The type of association for the relationship.

          
        

        - **programManagementAccountId** *(string) --* 

          The identifier of the program management account.

          
        

        - **associatedAccountId** *(string) --* 

          The AWS account ID associated in this relationship.

          
        

        - **displayName** *(string) --* 

          The display name of the relationship.

          
        

        - **resaleAccountModel** *(string) --* 

          The resale account model for the relationship.

          
        

        - **sector** *(string) --* 

          The business sector for the relationship.

          
        

        - **createdAt** *(datetime) --* 

          The timestamp when the relationship was created.

          
        

        - **updatedAt** *(datetime) --* 

          The timestamp when the relationship was last updated.

          
        

        - **startDate** *(datetime) --* 

          The start date of the relationship.

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

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

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

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

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

  