An action may be brought against two or more persons for the purpose of compelling one to satisfy a debt due to the other, for which the plaintiff is bound as surety.