The action of mandamus is one brought to obtain an order commanding an inferior tribunal, board, corporation, or person to do or not to do an act, the performance or omission of which the law enjoins as a duty resulting from an office, trust, or station.
Iowa Code § 661.1