Is bacteria a type of parasite?

Flexi Says:
Some bacteria depend on a host organism for energy and nutrients. These bacteria are known as parasites. If the host starts attacking the parasitic bacteria, the bacteria release a layer of slime that surrounds the cell wall. This slime offers an extra layer of protection.