It there a Channels API to perform the "Scan Sources" maintenance operation provided in the DVR Local Content web GUI?
Every operation on the web UI has an API behind it.
You can use the network inspector in your browser (part of the dev tools) to see what happens when you click the button.