Three types
A permanent magnet holds without energy. It is switched mechanically, usually by a hand lever that diverts the magnetic flux inside. An electromagnet holds only while current flows; it can be switched remotely and its force can be controlled, but it needs protection against power failure, such as a backup battery.
The electro-permanent magnet combines both: a current pulse switches it on or off, and it holds without power. It is the type for grippers that are switched automatically or frequently and where a power failure must not release the load.