That whole thing is the bulb, you replace it as one piece. If you have just bought the little glass bit at the top - that will be a bulb for something like the number plate or glove box etc. I would take the old one to the shop and ask for a new one like it.