In an action where an attachment has been granted, the execution by or for the defendant of a bond whereby the attachment is discharged, or the possession of the attached property is obtained or retained by him or her, shall be an appearance of the defendant in the action.