code: def get_connected_endpoints(self, **kwargs):  # noqa: E501
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('asynchronous'):
              return self.get_connected_endpoints_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.get_connected_endpoints_with_http_info(**kwargs)  # noqa: E501
              return data
docs: (DEPRECATED) List registered endpoints. The number of returned endpoints is currently limited to 200.  # noqa: E501
  
          Endpoints are physical devices having valid registration to Device Management. All devices regardless of registration status can be requested from Device Directory API ['/v3/devices/`](/docs/current/service-api-references/device-directory.html).  **Note:** This endpoint is deprecated and will be removed 1Q/18. You should use the Device Directory API [`/v3/devices/`](/docs/current/service-api-references/device-directory.html). To list only the registered devices, use filter `/v3/devices/?filter=state%3Dregistered`.  **Example usage:**      curl -X GET https://api.us-east-1.mbedcloud.com/v2/endpoints -H 'authorization: Bearer {api-key}'   # noqa: E501
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass asynchronous=True
          >>> thread = api.get_connected_endpoints(asynchronous=True)
          >>> result = thread.get()
  
          :param asynchronous bool
          :param str type: Filter endpoints by endpoint-type.
          :return: list[Endpoint]
                   If the method is called asynchronously,
                   returns the request thread.