cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1875
Views
5
Helpful
2
Replies

Job Creation in rest API browser view

dipuSourav
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Robert Gardner
Cisco Employee
Cisco Employee

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

 

 

View solution in original post

2 Replies 2

Robert Gardner
Cisco Employee
Cisco Employee

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

 

 

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