def get_endpoint_subscriptions(self, device_id, **kwargs):  # noqa: E501
        """Read endpoints subscriptions  # noqa: E501

        Lists all subscribed resources from a single endpoint.  **Example usage:**      curl -X GET \\       https://api.us-east-1.mbedcloud.com/v2/subscriptions/{device-id} \\       -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_endpoint_subscriptions(device_id, asynchronous=True)
        >>> result = thread.get()

        :param asynchronous bool
        :param str device_id: A unique Device Management device ID for the endpoint. Note that ID must be an exact match. You cannot use wildcards here.  (required)
        :return: str
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('asynchronous'):
            return self.get_endpoint_subscriptions_with_http_info(device_id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_endpoint_subscriptions_with_http_info(device_id, **kwargs)  # noqa: E501
            return data