The court or a judge thereof may grant an order pursuant to § 15-9-7 where the subject of the action is property in this state and the defendant has or claims a lien or interest, actual or contingent therein, or the relief demanded consists wholly or partly in excluding the defendant from any interest in or lien thereon.
SDCL 15-9-9