Simply connect a fluid source to the 3/4" threaded inlet and it will interrupt the flow until 12V is applied to the fast-on connectors on the solenoid.
This small solenoid (electromagnet) can move a short pin back and forth. This particular type works with a voltage of up to 12VDC a has a 5.5mm stroke.