API Guide
Trigger Job
The Trigger Job API is used to pull data from a customer's ServiceNow instance, and process those data through sRTMS.
HTTP POST
URL
https://<hostname>:<port>/job-rest-service/service-now/job
<hostname>: Azure hostname
<port>: Azure port
Header (JSON format)
Content-Type: application/json
Accept: application/json
X-MS-VERSION: v0.1.1
X-AD-Authorization: <azureToken>
Header (XML format)
Content-Type: application/xml
Accept: application/xml
X-MS-VERSION: v0.1.1
X-AD-Authorization: <azureToken>
Body (JSON format)
{
"jobName":"<jobName>",
"userName":"<snowLogin>",
"password":"<snowPwd>"
}
<jobName>: Use an exist Job Name's or create a new one
<snowLogin>: ServiceNow instance's username
<snowPwd>: ServiceNow instance's password
Body (XML format)
<JobArgs>
<jobName>[jobName]</jobName>
<userName>[snowLogin]</userName>
<password>[snowPwd]</password>
</JobArgs>
[jobName]: Use an exist Job Name's or create a new one
[snowLogin]: ServiceNow instance's username
[snowPwd]: ServiceNow instance's password
Response
This request will return the Job ID session key "jobID". Please save this Job ID and use it in the Job Status API call.
Support
if you have questions or issues using the API, please contact us as support@fatstacks.tech