Domain 2 has 2 different peripheral clock prescalers, D2PPRE1 (for APB1) and D2PPRE2 (for APB2). You can use HAL_RCC_GetPCLK1Freq and HAL_RCC_GetPCLK2Freq to get these. These are both domain 2 clocks.
I think they chose the naming scheme based on previous chip series where the clock scheme was not so complex. One could make a case for calling them HAL_RCCEx_GetD2PCLK1Freq/HAL_RCCEx_GetD2PCLK2Freq here, but it is what it is.
The "Clock Configuration" screen in CubeMX really helps me understand the clock scheme on the H7. Might help.