04-04-2018 03:03 AM - edited 03-01-2019 09:28 AM
Hi expert
While truing to create a job using the following URL
http://<hostname>:<port>/apidoc/<DSP name>/method/Job/create/
This XML is showing and asking for proving Object
<?xml version="1.0" encoding="UTF-8" ?>
<entry xmlns="http://purl.org/atom/ns#">
<tes:Job.createxmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<object><object>
</tes:Job.create></entry>
Can anyone suggest what needs to be provided here to create a job?
Thanks
Sourav
Solved! Go to Solution.
04-04-2018 04:11 AM
http://<hostname>:8080/apidoc/tes-6.0/data/Job will show you all the fields. Job example 3 on Page 33 of the Rest API reference guide will help for a simple job creation while example 4 has more fields.
Bob Gardner
04-04-2018 04:11 AM
04-04-2018 07:59 AM - edited 04-04-2018 08:00 AM
Hi Bob
Thanks for your reply. I checked that and trying to process it in my code. The xml looks like this
-
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
<id>xxx</id>
<tes:Job.create xmlns:tes="http://www.tidalsoftware.com/client/tesservlet">
<tes:job>
<tes:name>abc_job1</tes:name>
<tes:type>2</tes:type>
<tes:active>Y</tes:active>
<tes:ownerid>1</tes:ownerid>
<tes:command>hostname</tes:command>
<tes:runuserid>9</tes:runuserid>
<tes:agentid>59</tes:agentid><
tes:saveoutputoption>Y</tes:saveoutputoption>
</tes:job>
</tes:Job.create>
</entry>
Can you please suggest what are these inputs-
ID - xxx - >Job ID will be created automatically or I need to provide that
agentid - > I can see agent name, but not ID in Tidal.
Please suggest.
Thanks and Regards
Sourav
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide