def instance_id_update(args, region, instance_id, action): instance.validate_region(region) instance.validate_action(action) instance.set_instance_state(instance_id, region, action) return "", 204
def instance_id_read(args, region, instance_id): instance.validate_region(region) payload = instance.get_instance(instance_id, region) return jsonify(payload), 200