Original Pokémon Diamond and Pearl (Generation IV, 2006/2007) have no online storage or cloud banking features. The only storage is the in-game PC box system (18 boxes, 540 Pokémon max).
Pokémon Bank (cloud storage, annual subscription) launched with Generation VI (X/Y) in 2013. Pokémon Home (current cross-platform cloud service) launched in 2020.
To move Pokémon from Diamond/Pearl to modern games:
This requires: two DS/3DS systems, Gen V games, 3DS with Poké Transporter, and active Pokémon Bank/Home subscriptions. It's a chore—but possible.