The justices of the Supreme Court and of the courts of appeal, or any of them, may, at chambers, grant all orders and writs which are usually granted in the first instance upon an ex parte application, except writs of mandamus, certiorari, and prohibition; and may, in their discretion, hear applications to discharge such orders and writs.
Ca. Civ. Proc. Code § 165