Get All pipelines that are on hold

Hello team, can someone help me, how to get the list of pipelines that are on hold state to cancel them programmatically