GET /plan_jobs/<job-id>/event/<event-id>
Retrieve the details of a specific event for a specific plan job.
Request format
When Forming orchestrator API requests to this endpoint, the URI path must include an integer plan job ID and an integer event ID. You can get plan job IDs from plan-related Command endpoints and the GET /plan_jobs endpoint. You can get event IDs from the GET /plan_jobs/<job-id>/events endpoint.
For example, this request queries event number 1272
for plan job number 352
:
GET https://orchestrator.example.com:8143/orchestrator/v1/plan_jobs/352/event/1272
event
,
and not events
, like the GET /plan_jobs/<job-id>/events
endpoint.Response format
A successful response is a JSON object that uses these keys to provide the event details:
Key | Definition |
---|---|
id
|
The event's ID. |
type
|
The event's type, determined by the event's status or
circumstances that cause it to occur:
A plan containing the
|
timestamp
|
The time the event occurred (or was created). |
details
|
A JSON object containing information about the event.
Specific contents depends on the event type:
|
Here is an example of a response body:
{ "id": "1265", "type": "out_message", "timestamp": "2016-05-05T19:50:06Z", "details": { "message": "this is an output message" } }
Error responses
If there is an error, Orchestrator API error responses provide
error information in the kind
key:
Response code | Key | Description |
---|---|---|
400 | puppetlabs.orchestrator/validation-error
|
The plan job ID or the event ID in the request are not supplied as integers. |
404 | puppetlabs.orchestrator/unknown-job
|
No plan job exists that matches the specified plan job ID. |
404 | puppetlabs.orchestrator/mismatched-job-event-id
|
The specified event ID does not match any event ID associated with the specified plan job ID. |