Mix the zucchini, onions and salt well and let stand overnight.
Drain the next day. Add the remaining ingredients and mix in, bring everything to the boil and let it steep for 15 minutes. Fill into (well-cleaned) jam jars and close.
However, it is better to boil the glasses in the saucepan for another 15 minutes.