:doc:`Outposts <../../outposts>` / Client / get_site_address

****************
get_site_address
****************



.. py:method:: Outposts.Client.get_site_address(**kwargs)

  

  Gets the site address of the specified site.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetSiteAddress>`_  


  **Request Syntax**
  ::

    response = client.get_site_address(
        SiteId='string',
        AddressType='SHIPPING_ADDRESS'|'OPERATING_ADDRESS'
    )
    
  :type SiteId: string
  :param SiteId: **[REQUIRED]** 

    The ID or the Amazon Resource Name (ARN) of the site.

    

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

    The type of the address you request.

    

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

    
    ::

      {
          'SiteId': 'string',
          'AddressType': 'SHIPPING_ADDRESS'|'OPERATING_ADDRESS',
          'Address': {
              'ContactName': 'string',
              'ContactPhoneNumber': 'string',
              'AddressLine1': 'string',
              'AddressLine2': 'string',
              'AddressLine3': 'string',
              'City': 'string',
              'StateOrRegion': 'string',
              'DistrictOrCounty': 'string',
              'PostalCode': 'string',
              'CountryCode': 'string',
              'Municipality': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SiteId** *(string) --* 

        The ID of the site.

        
      

      - **AddressType** *(string) --* 

        The type of the address you receive.

        
      

      - **Address** *(dict) --* 

        Information about the address.

        
        

        - **ContactName** *(string) --* 

          The name of the contact.

          
        

        - **ContactPhoneNumber** *(string) --* 

          The phone number of the contact.

          
        

        - **AddressLine1** *(string) --* 

          The first line of the address.

          
        

        - **AddressLine2** *(string) --* 

          The second line of the address.

          
        

        - **AddressLine3** *(string) --* 

          The third line of the address.

          
        

        - **City** *(string) --* 

          The city for the address.

          
        

        - **StateOrRegion** *(string) --* 

          The state for the address.

          
        

        - **DistrictOrCounty** *(string) --* 

          The district or county for the address.

          
        

        - **PostalCode** *(string) --* 

          The postal code for the address.

          
        

        - **CountryCode** *(string) --* 

          The ISO-3166 two-letter country code for the address.

          
        

        - **Municipality** *(string) --* 

          The municipality for the address.

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

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

  
  *   :py:class:`Outposts.Client.exceptions.NotFoundException`

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

  