I used a few clamps just like that from a water bottle to hold on my ebike battery. Just a warning though, those clamps are made with unique tube OD's and so they have zero tolerance so you need to be exact with the tube diameter.
I've also had success with stainless hose clamps for securing batteries on previous ebikes. They are great as the don't come loose and are very strong, really cheap, and you can get them anywhere. Make sure to use the good quality ones though!