The officers and employees of the city, both elected and appointed, shall execute such surety or fidelity bonds in such amounts and upon such terms and conditions as the mayor and council shall from time to time require by ordinance or as may be provided by law.