I am trying to get all jobs from a project using Google client library for dataflow. I am able to fetch metrics using job Id. But unable to get all jobs inside a project, any code snippet will be very helpful. We can use Apache beam runner as well. There is a method list all jobs in Apache runner but I am unable to use it.
You will want to use this API: https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs/list
This should have an example showing how to use the Java client: https://cloud.google.com/dataflow/docs/samples/dataflow-v1beta3-generated-JobsV1Beta3-ListJobs-sync.