In this thesis, the spin dynamics of CeCoIn5 has been studied by inelastic neutron scattering. CeCoIn5 presents the highest critical temperature ( Tc = 2.3 K) among heavy fermion Ce-based compounds and shows an unconventionnal supraconductivity with a d_{x²-y²}-wave gap. The magnetic excitation spectra is radically changed in the supraconducting state with the apparition of an intense excitation named "Spin resonance". This kind of excitation has already been discovered in high-Tc superconductors and even in the new Iron-based superconductors. In this thesis, we focused on the evolution of the spin resonance with the application of a magnetic field and the introduction of magnetic and non-magnetic impurities. From our study, the main effect of impurities is to decrease the superconducting gap which leads to a proportionnal decrease of the resonance energy. The case of magnetic field is more difficult and our researchs suggest a Zeeman splitting of the spin resonance in agreements with the models developped for the cuprates.