626.19  Surety subrogated.
  When the principal and surety are liable for any claim, such surety may pay the same, and recover thereon against all liable to the surety. If a judgment against principal and surety has been paid by the surety, the surety shall be subrogated to all the rights of the creditor, and may take an assignment thereof, and enforce the same by execution or otherwise, as the creditor could have done. All questions between the parties thereto may be heard and determined on motion by the court upon such notice as may be prescribed by it.
[C97, §3967; C24, 27, 31, 35, 39, §11667; C46, 50, 54, 58, 62, 66, 71, 73, 75, 77, 79, 81, §626.19]
See 
R.C.P. 1.982