Skip to main content

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

Body

    jobnamestring
    Example: TestConnectionsJob
    jobstartdatestring
    Example: 2020-01-17 07:57:34
    triggernamestring
    Example: testconn

Responses

Fetch Job Metadata

Response Headers

  • Content-Length

    string

  • Date

    string

  • Server

    string

  • WWW-Authenticate

    string

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