Agent.GetJobs - Mozenda

Agent.GetJobs

August 10, 2015

Description

Returns a list of your agent’s jobs with detailed information.

Required parameters

AgentID

Optional parameters

Job.Created (YYYY-MM-DD. Returns jobs that were created greater than or equal to the date specified)
Job.Started (YYYY-MM-DD. Returns jobs that were started greater than or equal to the date specified)
Job.Ended (YYYY-MM-DD. Returns jobs that ended less than or equal to the date specified)
Job.State (Active, Archived, All)

Returns

A list of current jobs in the system for this agent in descending order.

Example request url

https://api.mozenda.com/rest?WebServiceKey=C70E1F84-E12B-4e73-B199-2EE6D43AF44E&Service=Mozenda10&Operation=Agent.GetJobs&AgentID=1001&Job.Started=2009-02-06&Job.Ended=2009-02-07&Job.State=Active

Example response

<?xml version="1.0" encoding="utf-8" ?>
<AgentGetJobsResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result>
  <JobList>
	 <Job>
		<Created>2008-11-13 16:41:26</Created>
		<Modified>2008-11-13 16:41:27</Modified>
		<JobID>EE64EC0E-F233-4549-8DF0-852298965F81</JobID>
		<JobType>WebPageHarvest</JobType>
		<Status />
		<Started />
		<Ended />
		<AgentID>1002</AgentID>
		<ErrorCode />
		<ErrorMessage />
		<ErrorFirst />
		<ErrorLast />
		<ErrorCount />
		<WarningFirst />
		<WarningLast />
		<WarningCount />
	 </Job>
  </JobList>
</AgentGetJobsResponse>

Need more information?

We'd love to hear from you.

100% Privacy. You are that important to us. Privacy Policy