'Stop a running node.
:param node: The node to be stopped
:type node: :class:`.Node`
:param deallocate: If True (default) stop and then deallocate the node
(release the hardware allocated to run the node).  If False, stop the
node but maintain the hardware allocation.  If the node is not
deallocated, the subscription will continue to be billed as if it
were running.
:type deallocate: ``bool``'

def ex_stop_node(self, node, deallocate=True):

    if deallocate:
        target = ('%s/deallocate' % node.id)
    else:
        target = ('%s/stop' % node.id)
    r = self.connection.request(target, params={'api-version': '2015-06-15'}, method='POST')
    return r.object
