Cal. Civ. Proc. Code § 995.710
(a) Except as provided in subdivision (e) or to the extent the statute providing for a bond precludes a deposit in lieu of bond or limits the form of deposit, the principal may, without prior court approval, instead of giving a bond, deposit with the officer any of the following: