For a parent RunDeck job, I want to fetch sub job names along with it's time related details like start date, end date,etc. and need to store this details into SQL DB table.
Which RunDeck API call can be used to fetch details of specific step of parent RunDeck job by passing stepctx and execution Id to API call ?
I am trying to use various APIs of 'Execution output' RunDeck API call as below,
GET /api/38/execution/{execId}/node/{nodeName}/step/{stepctx}
GET api/38/execution/{executionId}/step/{stepctx}
However, it is not providing any details of particular step in the response of the API call and showing entries as blank in the response.
"entries": []
I saw the same behavior. The
stepctxformat using Job Reference Steps is quite different.I have two jobs, Parent and Child:
Parent Job:
And the Child Job:
So, to see what
stepctxwas used in your execution you can print the full execution using:The Answer:
As you see, the
stepctxvalue for the Job Reference step is2@node=localhost/1. So, to retrieve that specific step you can use the following call:Output: