Onslaught is not a playable character in War for Cybertron – Decepticons. He appears only as a boss enemy in the level "A Bridge Too Far."
To play as Onslaught: You need the sequel, Transformers: Fall of Cybertron (2012).
In Fall of Cybertron, Onslaught is a "Destroyer" class character with a heavy weapon loadout and the ability to deploy a defensive barrier.