There are walk through metal detectors (not to be confused with xray machines), walk through body scanners and bag Xray machines.
Most manufacturers recommend that pumps are not put through the bag Xray or body scanners, where as walk through metal detectors are fine.
The bag xray machines have been fine for handsets and dexcom receivers (for me).
I wear my pump and walk through metal detectors but have refused to go into body scanners - each time I'm allowed to walk around and be manually searched/swabbed. You do have to ask, and get challenged, just be firm and say the manufacturer has told you that it cannot enter the scanner and all should be ok.
My experience of politely declining the opportunity to put my pump through a body scanner is they either take it as a refusal to put my body through the scanner and I am manually scanned/patted down (sometimes in the public area sometimes taken off to a private room) or I am offered the chance to go through without the pump. In this latter scenario, the pump is kept within my sight at all times and swabbed which I am being scanned.
In both scenarios, someone who knows what they are doing and, in the case of the pat down, someone of the same gender as I is needed. Therefore, I have found myself waiting for five or ten minutes at times. Hence, I recommend giving yourself extra time to get through security if you have a pump.
If you have a spare pump from the manufacturer for your trip, don't forget to keep the spare pump in your hand (rather than hand luggage).
And one thing that has caught me out is my over confidence that the pump does not set off the metal detector has led me to forget that the metal clip will set it off : remember to only take the pump through the metal detector/arch.