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
jobnamestring
Example:
TestConnectionsJob
jobstartdatestring
Example:
2020-01-17 07:57:34
triggernamestring
Example:
testconn
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
errorCodenumber
Example:
0
msgstring
Example:
Success
result
object
TestConnectionsJob
object
EndTimestring
Example:
Fri Jan 17 07:54:57 UTC 2020
JobCompletedstring
Example:
Completed
Resultstring
Example:
<br>DBTest000 : Connection Failed<br>Dbdb2 : Unknown database 'cisco'
StartTimestring
Example:
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"
}
}
}
{
"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"
}
}
}