Fetch Job Metadata
POST/fetchJobMetadata
This API call return job metadata for the last run of a job in SSM.
The Authorization
must have Bearer
followed by Token
.
Mandatory params:
jobname
Optional params:
triggername
jobgroup
Note: The structure of the result param in response can change based upon the Job History saved in SSM
Request
- application/json
Body
jobname string
jobstartdate string
triggername string
Responses
- 200
Fetch Job Metadata
Response Headers
Content-Length
string
Date
string
Server
string
WWW-Authenticate
string
- application/json
- Schema
- Example (from schema)
- Fetch Job Metadata
Schema
errorCode number
msg string
result
object
TestConnectionsJob
object
EndTime string
JobCompleted string
Result string
StartTime string
{
"errorCode": 0,
"msg": "Success",
"result": {
"TestConnectionsJob": {
"EndTime": "Fri Jan 17 07:54:57 UTC 2020",
"JobCompleted": "Completed",
"Result": "<br>DBTest000 : Connection Failed<br>Dbdb2 : Unknown database 'cisco'",
"StartTime": "Fri Jan 17 07:54:36 UTC 2020"
}
}
}
{
"errorCode": 0,
"msg": "Success",
"result": {
"TestConnectionsJob": {
"EndTime": "Fri Jan 17 07:54:57 UTC 2020",
"JobCompleted": "Completed",
"Result": "<br>DBTest000 : Connection Failed<br>Dbdb2 : Unknown database 'cisco'",
"StartTime": "Fri Jan 17 07:54:36 UTC 2020"
}
}
}
Loading...