Running NM and BX Cables – Stackable Staples – Rim Joists - NEC2017/2020
The height is usually the issue in a basement 8’ has always been ok but code really doesn’t have a height if on the ceiling or crawl space there is no minimum height. I have worked with inspectors that were ok with 7’.
My opinion would be because this is above a pipe it would not be an issue.
With that said at my current location I was doing some fairly extensive permitted work and I had just moved to this county and the inspector did not know me and was being a real jerk actually making things up that were not code.
I asked him for the code references and and pulled out my hand book.( He was not going to sign my permit off before that) when I gave him my license number he said well that’s the way I like it And he then signed off on the job.
Some inspectors are real jerks to home owners. If the height is above 8’ it should fly without problems. Below 8’ it might be an issue. But it should not be.
I might suggest to have enough slack to rotate it up to the floor joist if he flags it. a strip of plywood as a backer and put it there would be code legal even if below 8’. Your location is better in my opinion because of the stronger wood the clips are attached to and the pipe is also protecting the wires.