The Prophet was treated by means of cupping when he was Ihram.
Sunan an-Nasa'i Book 24, Hadith 229