def reboot(name, call=None):
    node = get_node(name)
    ret = take_action(name=name, call=call, method='POST',
                      command='/my/machines/{0}'.format(node['id']),
                      location=node['location'], data={'action': 'reboot'})
    return ret[0] in VALID_RESPONSE_CODES
reboot a machine by name
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/joyent.py/reboot