1. In case any building or structure is erected, constructed, reconstructed, demolished, altered, repaired, moved, converted, or maintained in violation of this ordinance, the building inspector or any other appropriate authority, or any city resident who would be damaged by such violation may institute injunction, mandamus or other appropriate action to prevent the use of the building, structure or land.