An injunction may be the final judgment in an action, or may be allowed as a provisional remedy. Where so allowed, it shall be by order.