-
Notifications
You must be signed in to change notification settings - Fork 882
API: Call to view script results #13306
Copy link
Copy link
Closed
Labels
#g-mdmMDM product groupMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Milestone
Metadata
Metadata
Assignees
Labels
#g-mdmMDM product groupMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.Ready to write code. Scheduled in a release. See "Making changes" in handbook.~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)A technical sub-task that is part of a story. (Not QA'd. Not estimated.)
GET /api/v1/fleet/scripts/results/{uuid}
example response
{ "host_id": 1227, "execution_id": "e797d6c6-3aae-11ee-be56-0242ac120002", "script_contents": "...", "exit_code": null | 0, "output": "...", "message": "...", "runtime": 14, "host_timeout": false, "host_name": "..." }exit_codeis set tonullandhost_timeoutis set tofalse.exit_codeis set tonullandhost_timeoutis set totrue.exit_codeis-2andhost_timeoutis set tofalse.See the linked Figma here for the
messagein each of these cases.