def reboot(instance_id, call=None):
    if call != 'action':
        raise SaltCloudSystemExit(
            'The stop action must be called with -a or --action.'
        )

    log.info('Rebooting instance {0}'.format(instance_id))

    params = {
        'action': 'RestartInstances',
        'zone': _get_specified_zone(provider=get_configured_provider()),
        'instances.1': instance_id,
    }
    result = query(params)

    return result
Reboot an instance.
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/reboot