In any action to foreclose or in any action to quiet title brought by the purchaser at a sale for delinquency under this division, or by his successor in interest, the State of California may be made a party defendant, and in that event it shall be sufficient service of process to serve the Attorney General.