Skip to main content
Solved

http call to get a list of completed jobs with username info

  • April 16, 2016
  • 4 replies
  • 36 views

Forum|alt.badge.img

I am new to FME Server. Hope I can get some help from here.

I want to get a list of completed jobs with status and username from our FME Server. I can get jobs with status via a http call - /fmerest/v2/transformations/jobs/completed. But I didn't see the username info exposed through this rest endpoint. I know the postgresql fme_job_history table stores the username info. How can I retrieve it through a http call?

Thanks all for your help.

Best answer by stalknecht

You can get the information with the following http call where 150 is the job_id:

~/fmerest/v2/transformations/jobs/id/150/log?detail=high

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Best Answer
  • April 17, 2016

You can get the information with the following http call where 150 is the job_id:

~/fmerest/v2/transformations/jobs/id/150/log?detail=high


Forum|alt.badge.img
  • Author
  • April 17, 2016

You can get the information with the following http call where 150 is the job_id:

~/fmerest/v2/transformations/jobs/id/150/log?detail=high

Thank stalknecht for your response. So if I have over 1000 completed jobs, i have to make 1000 calls to the server and parse each response to get the username info? I saw the fme_job_history table has every info I need, is there a transformer i can use to make ONE database call in a workspace to get all i need? Thanks for your help.


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • April 17, 2016

You can get the information with the following http call where 150 is the job_id:

~/fmerest/v2/transformations/jobs/id/150/log?detail=high

Sure, the sqlExecuter or sqlCreator could do that.


Forum|alt.badge.img
  • Author
  • April 18, 2016

You can get the information with the following http call where 150 is the job_id:

~/fmerest/v2/transformations/jobs/id/150/log?detail=high

Thank you so much! sqlCreator works for my purpose.