:doc:`IoTWireless <../../iotwireless>` / Client / get_service_endpoint

********************
get_service_endpoint
********************



.. py:method:: IoTWireless.Client.get_service_endpoint(**kwargs)

  

  Gets the account-specific endpoint for Configuration and Update Server (CUPS) protocol or LoRaWAN Network Server (LNS) connections.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotwireless-2020-11-22/GetServiceEndpoint>`_  


  **Request Syntax**
  ::

    response = client.get_service_endpoint(
        ServiceType='CUPS'|'LNS'
    )
    
  :type ServiceType: string
  :param ServiceType: 

    The service type for which to get endpoint information about. Can be ``CUPS`` for the Configuration and Update Server endpoint, or ``LNS`` for the LoRaWAN Network Server endpoint.

    

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

    
    ::

      {
          'ServiceType': 'CUPS'|'LNS',
          'ServiceEndpoint': 'string',
          'ServerTrust': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ServiceType** *(string) --* 

        The endpoint's service type.

        
      

      - **ServiceEndpoint** *(string) --* 

        The service endpoint value.

        
      

      - **ServerTrust** *(string) --* 

        The Root CA of the server trust certificate.

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

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

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

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

  