J
I think one approach you could take would be to utilize the Native API which, using your example, could be found at https://example.com/reference/api. You could call the Pipelines_GetPipelines endpoint, filter by "Active_Indicator" == true, then parse the "Pipeline_Configuration" xml for each pipeline looking for the "PlanName" attribute of the "Properties" element under the "Inedo.BuildMaster.Pipelines.PipelineStageTarget" elements. Here's a snippet of the "Pipeline_Configuration" I get back when I run this, to get a better idea.
<Inedo.BuildMaster.Pipelines.Pipeline Assembly="BuildMaster">
<Properties Name="All" Color="#499e8d" Description="The pipeline that deploys to all environments on all stacks. " EnforceStageSequence="False">
<Stages>
<Inedo.BuildMaster.Pipelines.PipelineStage Assembly="BuildMaster">
<Properties Name="Build" TargetExecutionMode="Parallel" AutoPromote="False">
<Targets>
<Inedo.BuildMaster.Pipelines.PipelineStageTarget Assembly="BuildMaster">
<Properties PlanName="Main-Build" EnvironmentName="BuildFarm" DefaultServerContext="None">
<ServerNames />
<ServerRoleNames />
</Properties>
</Inedo.BuildMaster.Pipelines.PipelineStageTarget>
</Targets>
From this you can see I have a Pipeline named "All" that has a stage named "Build" that calls the plan "Main-Build".