The court may, in any of the cases mentioned under this head of specific attachments, direct the terms and conditions of the bond to be executed by the defendant, with security, in order to obtain a discharge of the attachment or to release the attached property.
Iowa Code § 640.5