:doc:`Greengrass <../../greengrass>` / Client / get_connectivity_info

*********************
get_connectivity_info
*********************



.. py:method:: Greengrass.Client.get_connectivity_info(**kwargs)

  Retrieves the connectivity information for a core.

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectivityInfo>`_  


  **Request Syntax**
  ::

    response = client.get_connectivity_info(
        ThingName='string'
    )
    
  :type ThingName: string
  :param ThingName: **[REQUIRED]** The thing name.

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

    
    ::

      {
          'ConnectivityInfo': [
              {
                  'HostAddress': 'string',
                  'Id': 'string',
                  'Metadata': 'string',
                  'PortNumber': 123
              },
          ],
          'Message': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* success
      

      - **ConnectivityInfo** *(list) --* Connectivity info list.
        

        - *(dict) --* Information about a Greengrass core's connectivity.
          

          - **HostAddress** *(string) --* The endpoint for the Greengrass core. Can be an IP address or DNS.
          

          - **Id** *(string) --* The ID of the connectivity information.
          

          - **Metadata** *(string) --* Metadata for this endpoint.
          

          - **PortNumber** *(integer) --* The port of the Greengrass core. Usually 8883.
      
    
      

      - **Message** *(string) --* A message about the connectivity info request.
  
  **Exceptions**
  
  *   :py:class:`Greengrass.Client.exceptions.BadRequestException`

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

  