Am I missing parts/can someone who knows more about bikes tell me what this format is called so I can buy a new cassette.

I was also wondering if the axle holds the cassette body in or there’s something I’m missing that should be holding it in because at the moment it just pops out.